# Google Cloud BigQuery Migration V2 Client - Class ErrorDetail (1.3.0)

1.3.0 (latest) 1.2.3 1.1.5 1.0.0 0.4.5 0.3.3 0.2.2 0.1.4 Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class ErrorDetail.

Provides details for errors, e.g. issues that where encountered when
processing a subtask.

Generated from protobuf message `google.cloud.bigquery.migration.v2.ErrorDetail`

## Namespace

Google \\ Cloud \\ BigQuery \\ Migration \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ location` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.ErrorLocation` Optional. The exact location within the resource (if applicable). |
| `↳ error_info` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.ErrorInfo.html` Required. Describes the cause of the error with structured detail. |

### getLocation

Optional. The exact location within the resource (if applicable).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.ErrorLocation|null` |   |

### hasLocation

### clearLocation

### setLocation

Optional. The exact location within the resource (if applicable).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.ErrorLocation` |

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

### getErrorInfo

Required. Describes the cause of the error with structured detail.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.ErrorInfo.html|null` |   |

### hasErrorInfo

### clearErrorInfo

### setErrorInfo

Required. Describes the cause of the error with structured detail.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.ErrorInfo.html` |

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