public final class Exceptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Exceptions.AppendSerializtionError
This exception is thrown from
JsonStreamWriter#append() when the client side Json to
Proto serializtion fails. |
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
Input Json data has unknown field to the schema of the JsonStreamWriter.
|
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.
|
| Modifier and Type | Method and 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.
|
@Nullable public static Exceptions.StorageException toStorageException(com.google.rpc.Status rpcStatus, Throwable exception)
Exceptions.StreamFinalizedException or Exceptions.SchemaMismatchedException (both derive from StorageException). If there is no StorageError, or
the StorageError is a different error it will return NULL.@Nullable public static Exceptions.StorageException toStorageException(Throwable exception)
Exceptions.StreamFinalizedException or Exceptions.SchemaMismatchedException
(both derive from StorageException). If there is no StorageError, or the StorageError is a
different error it will return NULL.Copyright © 2023 Google LLC. All rights reserved.