Exception MutateRowsException (2.39.2)

public final class MutateRowsException extends 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.

Static Methods

create(Throwable rpcError, StatusCode status, List<MutateRowsException.FailedMutation> failedMutations, boolean retryable)

public static MutateRowsException create(Throwable rpcError, StatusCode status, List<MutateRowsException.FailedMutation> failedMutations, boolean retryable)

This constructor is considered an internal implementation detail and not meant to be used by applications.

Parameters
Name Description
rpcError Throwable
status StatusCode
failedMutations List<FailedMutation>
retryable boolean
Returns
Type Description
MutateRowsException

Methods

getFailedMutations()

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.

Returns
Type Description
List<FailedMutation>

getMessage()

public String getMessage()
Returns
Type Description
String
Overrides