Class Exceptions
- java.lang.Object
-
- com.google.cloud.bigquery.storage.v1.Exceptions
-
public final class Exceptions extends Object
Exceptions for Storage Client Libraries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Exceptions.AppendSerializationError
This exception is thrown fromSchemaAwareStreamWriter.append(Iterable)
when the client side Proto serialization fails.static class
Exceptions.AppendSerializtionError
This class has a typo in the name.static class
Exceptions.DataHasUnknownFieldException
Input data object has unknown field to the schema of the SchemaAwareStreamWriter.static class
Exceptions.FieldParseError
This exception is used internally to handle field level parsing errors.static class
Exceptions.InflightBytesLimitExceededException
static class
Exceptions.InflightLimitExceededException
If FlowController.LimitExceededBehavior is set to Block and inflight limit is exceeded, this exception will be thrown.static class
Exceptions.InflightRequestsLimitExceededException
static class
Exceptions.JsonDataHasUnknownFieldException
This class is replaced by a generic one.static class
Exceptions.OffsetAlreadyExists
Offset already exists.static class
Exceptions.OffsetOutOfRange
Offset out of range.static class
Exceptions.SchemaMismatchedException
There was a schema mismatch due to bigquery table with fewer fields than the input message.static class
Exceptions.StorageException
Main Storage Exception.static class
Exceptions.StreamFinalizedException
The write stream has already been finalized and will not accept further appends or flushes.static class
Exceptions.StreamNotFound
The stream is not found.static class
Exceptions.StreamWriterClosedException
This writer instance has either been closed by the user explicitly, or has encountered non-retriable errors.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
@Nullable public static Exceptions.StorageException toStorageException(Throwable exception)
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.
-
-