Class Exceptions
java.lang.Object
com.google.cloud.bigquery.storage.v1.Exceptions
Exceptions for Storage Client Libraries.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis exception is thrown fromSchemaAwareStreamWriter.append(Iterable)when the client side Proto serialization fails.static classThis class has a typo in the name.static classInput data object has unknown field to the schema of the SchemaAwareStreamWriter.static classThis exception is used internally to handle field level parsing errors.static classstatic classIf FlowController.LimitExceededBehavior is set to Block and inflight limit is exceeded, this exception will be thrown.static classstatic final classThis class is replaced by a generic one.static classThe connection was shut down because a callback was not received within the maximum wait time.static final classOffset already exists.static final classOffset out of range.static final classThere was a schema mismatch due to bigquery table with fewer fields than the input message.static classMain Storage Exception.static final classThe write stream has already been finalized and will not accept further appends or flushes.static final classThe stream is not found.static final classThis writer instance has either been closed by the user explicitly, or has encountered non-retriable errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic Exceptions.StorageExceptiontoStorageException(com.google.rpc.Status rpcStatus, Throwable exception) Converts a c.g.rpc.Status into a StorageException, if possible.static Exceptions.StorageExceptiontoStorageException(Throwable exception) Converts a Throwable into a StorageException, if possible.
-
Method Details
-
toStorageException
@Nullable public static Exceptions.StorageException toStorageException(com.google.rpc.Status rpcStatus, Throwable exception) Converts a c.g.rpc.Status into a StorageException, if possible. Examines the embedded StorageError, and potentially returns aExceptions.StreamFinalizedExceptionorExceptions.SchemaMismatchedException(both derive from StorageException). If there is no StorageError, or the StorageError is a different error it will return NULL. -
toStorageException
Converts a Throwable into a StorageException, if possible. Examines the embedded error message, and potentially returns aExceptions.StreamFinalizedExceptionorExceptions.SchemaMismatchedException(both derive from StorageException). If there is no StorageError, or the StorageError is a different error it will return NULL.
-