Class MutateRowsException.FailedMutation (2.28.0)

public abstract static class MutateRowsException.FailedMutation

Identifies which mutation failed and the reason it failed. The mutation is identified by it's index in the original request's MutateRowsRequest#getEntriesList().

Inheritance

java.lang.Object > MutateRowsException.FailedMutation

Static Methods

create(int index, ApiException error)

public static MutateRowsException.FailedMutation create(int index, ApiException error)

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

Parameters
NameDescription
indexint
errorApiException
Returns
TypeDescription
MutateRowsException.FailedMutation

Constructors

FailedMutation()

public FailedMutation()

Methods

getError()

public abstract ApiException getError()

The error that prevented this mutation from being applied. Please note, that if the entire RPC attempt failed, all mutations that were part of the attempt will have take on the same error.

Returns
TypeDescription
ApiException

getIndex()

public abstract int getIndex()

The index of the mutation in the original request's MutateRowsRequest#getEntriesList().

Returns
TypeDescription
int