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 and
getFailedMutations()
will contain synthetic errors for all of the entries that
were part of that RPC.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Identifies which mutation failed and the reason it failed. -
Method Summary
Modifier and TypeMethodDescriptionstatic MutateRowsException
create
(Throwable rpcError, List<MutateRowsException.FailedMutation> failedMutations, boolean retryable) This constructor is considered an internal implementation detail and not meant to be used by applications.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, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
@InternalApi public static MutateRowsException create(@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. -
getMessage
- Overrides:
getMessage
in classThrowable
-
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.
-