Class Exceptions
java.lang.Object
com.google.cloud.bigquery.storage.v1.Exceptions
Exceptions for Storage Client Libraries.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This exception is thrown fromSchemaAwareStreamWriter.append(Iterable)
when the client side Proto serialization fails.static class
This class has a typo in the name.static class
Input data object has unknown field to the schema of the SchemaAwareStreamWriter.static class
This exception is used internally to handle field level parsing errors.static class
static class
If FlowController.LimitExceededBehavior is set to Block and inflight limit is exceeded, this exception will be thrown.static class
static final class
This class is replaced by a generic one.static final class
Offset already exists.static final class
Offset out of range.static final class
There was a schema mismatch due to bigquery table with fewer fields than the input message.static class
Main Storage Exception.static final class
The write stream has already been finalized and will not accept further appends or flushes.static final class
The stream is not found.static final class
This writer instance has either been closed by the user explicitly, or has encountered non-retriable errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic Exceptions.StorageException
toStorageException
(com.google.rpc.Status rpcStatus, Throwable exception) Converts a c.g.rpc.Status into a StorageException, if possible.static Exceptions.StorageException
toStorageException
(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.StreamFinalizedException
orExceptions.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.StreamFinalizedException
orExceptions.SchemaMismatchedException
(both derive from StorageException). If there is no StorageError, or the StorageError is a different error it will return NULL.
-