Class StorageError (2.18.1)

StorageError(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Structured custom BigQuery Storage error message. The error can be attached as error details in the returned rpc Status. In particular, the use of error codes allows more structured error handling, and reduces the need to evaluate unstructured error text strings.

Attributes

NameDescription
code google.cloud.bigquery_storage_v1beta2.types.StorageError.StorageErrorCode
BigQuery Storage specific error code.
entity str
Name of the failed entity.
error_message str
Message that describes the error.

Classes

StorageErrorCode

StorageErrorCode(value)

Error code for StorageError.

Values: STORAGE_ERROR_CODE_UNSPECIFIED (0): Default error. TABLE_NOT_FOUND (1): Table is not found in the system. STREAM_ALREADY_COMMITTED (2): Stream is already committed. STREAM_NOT_FOUND (3): Stream is not found. INVALID_STREAM_TYPE (4): Invalid Stream type. For example, you try to commit a stream that is not pending. INVALID_STREAM_STATE (5): Invalid Stream state. For example, you try to commit a stream that is not finalized or is garbaged. STREAM_FINALIZED (6): Stream is finalized.