# Google Cloud Config V1 Client - Class TerraformError (1.8.0)

1.8.0 (latest) 1.7.2 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.5.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Config V1 Client class TerraformError.

Errors encountered during actuation using Terraform

Generated from protobuf message `google.cloud.config.v1.TerraformError`

## Namespace

Google \\ Cloud \\ Config \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_address` | `string` Address of the resource associated with the error, e.g. `google_compute_network.vpc_network`. |
| `↳ http_response_code` | `int` HTTP response code returned from Google Cloud Platform APIs when Terraform fails to provision the resource. If unset or 0, no HTTP response code was returned by Terraform. |
| `↳ error_description` | `string` A human-readable error description. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. Original error response from underlying Google API, if available. |

### getResourceAddress

Address of the resource associated with the error,
e.g. `google_compute_network.vpc_network`.

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

### setResourceAddress

Address of the resource associated with the error,
e.g. `google_compute_network.vpc_network`.

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

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

### getHttpResponseCode

HTTP response code returned from Google Cloud Platform APIs when Terraform
fails to provision the resource. If unset or 0, no HTTP response code was
returned by Terraform.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setHttpResponseCode

HTTP response code returned from Google Cloud Platform APIs when Terraform
fails to provision the resource. If unset or 0, no HTTP response code was
returned by Terraform.

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

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

### getErrorDescription

A human-readable error description.

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

### setErrorDescription

A human-readable error description.

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

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

### getError

Output only. Original error response from underlying Google API, if
available.

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

### hasError

### clearError

### setError

Output only. Original error response from underlying Google API, if
available.

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

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