# Class ErrorCode (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.21

    ErrorCode(value)

Possible errors that can occur with previews.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `ERROR_CODE_UNSPECIFIED` | No error code was specified. |
| `CLOUD_BUILD_PERMISSION_DENIED` | Cloud Build failed due to a permissions issue. |
| `BUCKET_CREATION_PERMISSION_DENIED` | Cloud Storage bucket failed to create due to a permissions issue. |
| `BUCKET_CREATION_FAILED` | Cloud Storage bucket failed for a non-permissions-related issue. |
| `DEPLOYMENT_LOCK_ACQUIRE_FAILED` | Acquiring lock on provided deployment reference failed. |
| `PREVIEW_BUILD_API_FAILED` | Preview encountered an error when trying to access Cloud Build API. |
| `PREVIEW_BUILD_RUN_FAILED` | Preview created a build but build failed and logs were generated. |
| `EXTERNAL_VALUE_SOURCE_IMPORT_FAILED` | Failed to import values from an external source. |