# Google Cloud Config V1 Client - Class ErrorCode (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 ErrorCode.

Possible errors that can occur with previews.

Protobuf type `google.cloud.config.v1.Preview.ErrorCode`

## Namespace

Google \\ Cloud \\ Config \\ V1 \\ Preview

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### ERROR_CODE_UNSPECIFIED

    Value: 0

No error code was specified.

Generated from protobuf enum `ERROR_CODE_UNSPECIFIED = 0;`

### CLOUD_BUILD_PERMISSION_DENIED

    Value: 1

Cloud Build failed due to a permissions issue.

Generated from protobuf enum `CLOUD_BUILD_PERMISSION_DENIED = 1;`

### BUCKET_CREATION_PERMISSION_DENIED

    Value: 2

Cloud Storage bucket failed to create due to a permissions issue.

Generated from protobuf enum `BUCKET_CREATION_PERMISSION_DENIED = 2;`

### BUCKET_CREATION_FAILED

    Value: 3

Cloud Storage bucket failed for a non-permissions-related issue.

Generated from protobuf enum `BUCKET_CREATION_FAILED = 3;`

### DEPLOYMENT_LOCK_ACQUIRE_FAILED

    Value: 4

Acquiring lock on provided deployment reference failed.

Generated from protobuf enum `DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4;`

### PREVIEW_BUILD_API_FAILED

    Value: 5

Preview encountered an error when trying to access Cloud Build API.

Generated from protobuf enum `PREVIEW_BUILD_API_FAILED = 5;`

### PREVIEW_BUILD_RUN_FAILED

    Value: 6

Preview created a build but build failed and logs were generated.

Generated from protobuf enum `PREVIEW_BUILD_RUN_FAILED = 6;`

### EXTERNAL_VALUE_SOURCE_IMPORT_FAILED

    Value: 7

Failed to import values from an external source.

Generated from protobuf enum `EXTERNAL_VALUE_SOURCE_IMPORT_FAILED = 7;`