Class MutateRowsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.api.gax.rpc.ApiException
-
- com.google.cloud.bigtable.data.v2.models.MutateRowsException
-
- All Implemented Interfaces:
Serializable
public final class MutateRowsException extends com.google.api.gax.rpc.ApiException
Thrown by the MutateRows when at least one Mutation failed. If the last failure was caused by an RPC error (as opposed to a single entry failing), then this exception's cause will be set to that error andgetFailedMutations()
will contain synthetic errors for all of the entries that were part of that RPC.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MutateRowsException.FailedMutation
Identifies which mutation failed and the reason it failed.
-
Constructor Summary
Constructors Constructor Description MutateRowsException(Throwable rpcError, List<MutateRowsException.FailedMutation> failedMutations, boolean retryable)
This constructor is considered an internal implementation detail and not meant to be used by applications.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MutateRowsException.FailedMutation>
getFailedMutations()
Retrieve all of the failed mutations.-
Methods inherited from class com.google.api.gax.rpc.ApiException
getDomain, getErrorDetails, getMetadata, getReason, getStatusCode, isRetryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MutateRowsException
@InternalApi public MutateRowsException(@Nullable Throwable rpcError, @Nonnull List<MutateRowsException.FailedMutation> failedMutations, boolean retryable)
This constructor is considered an internal implementation detail and not meant to be used by applications.
-
-
Method Detail
-
getFailedMutations
@Nonnull public List<MutateRowsException.FailedMutation> getFailedMutations()
Retrieve all of the failed mutations. This list will contain failures for all of the mutations that have failed across all of the retry attempts so far.
-
-