google.cloud.forseti.common.gcp_api.errors module

API errors.

exception ApiExecutionError(resource_name, e, resource_key=None, resource_value=None)[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

Error for API executions.

CUSTOM_ERROR_MESSAGE = 'GCP API Error: unable to get {0} from GCP:\n{1}\n{2}'
exception ApiInitializationError[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

Error initializing the API.

exception ApiNotEnabledError(error_url, e)[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

The requested API is not enabled on this project.

CUSTOM_ERROR_MESSAGE = 'GCP API Error; API not enabled, turn it on at {0}:\n{1}'
exception Error[source]

Bases: Exception

Base Error class.

exception InvalidBucketPathError[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

Invalid GCS bucket path.

exception OperationTimeoutError(project_id, operation)[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

Operation timed out before completing.

CUSTOM_ERROR_MESSAGE = 'GCP operation on project {0} timed out before completing, Operation name: {1}'
exception PaginationNotSupportedError[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

Paged Query was issued against an API that does not support paging.

exception UnsupportedApiError[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

Error for unsupported API.

exception UnsupportedApiVersionError[source]

Bases: google.cloud.forseti.common.gcp_api.errors.Error

Error for unsupported API version.