# Google Cloud Migration Center V1 Client - Class ImportError (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class ImportError.

A resource that reports the errors encountered while processing an
import job.

Generated from protobuf message `google.cloud.migrationcenter.v1.ImportError`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error_details` | `string` The error information. |
| `↳ severity` | `int` The severity of the error. |

### getErrorDetails

The error information.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setErrorDetails

The error information.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSeverity

The severity of the error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportError.Severity). |

### setSeverity

The severity of the error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportError.Severity). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |