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 classExceptions.AppendSerializationErrorThis exception is thrown fromSchemaAwareStreamWriter.append(Iterable)when the client side Proto serialization fails.static classExceptions.AppendSerializtionErrorThis class has a typo in the name.static classExceptions.DataHasUnknownFieldExceptionInput data object has unknown field to the schema of the SchemaAwareStreamWriter.static classExceptions.FieldParseErrorThis exception is used internally to handle field level parsing errors.static classExceptions.InflightBytesLimitExceededExceptionstatic classExceptions.InflightLimitExceededExceptionIf FlowController.LimitExceededBehavior is set to Block and inflight limit is exceeded, this exception will be thrown.static classExceptions.InflightRequestsLimitExceededExceptionstatic classExceptions.JsonDataHasUnknownFieldExceptionThis class is replaced by a generic one.static classExceptions.OffsetAlreadyExistsOffset already exists.static classExceptions.OffsetOutOfRangeOffset out of range.static classExceptions.SchemaMismatchedExceptionThere was a schema mismatch due to bigquery table with fewer fields than the input message.static classExceptions.StorageExceptionMain Storage Exception.static classExceptions.StreamFinalizedExceptionThe write stream has already been finalized and will not accept further appends or flushes.static classExceptions.StreamNotFoundThe stream is not found.static classExceptions.StreamWriterClosedExceptionThis 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.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 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.StreamFinalizedExceptionorExceptions.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.StreamFinalizedExceptionorExceptions.SchemaMismatchedException(both derive from StorageException). If there is no StorageError, or the StorageError is a different error it will return NULL.
-
-