@InterfaceStability.Committed @InterfaceAudience.Public public class MultiMutationException extends SubDocumentException
Exception denoting that at least one error occurred when applying multiple mutations using the sub-document API (a MutateInBuilder.execute()
with at least two mutations). None of the mutations were applied.
Constructor and Description |
---|
MultiMutationException(int index,
ResponseStatus errorStatus,
List<MutationSpec> originalSpec,
CouchbaseException errorException) |
Modifier and Type | Method and Description |
---|---|
int |
firstFailureIndex() |
MutationSpec |
firstFailureSpec() |
ResponseStatus |
firstFailureStatus() |
List<MutationSpec> |
originalSpec() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MultiMutationException(int index, ResponseStatus errorStatus, List<MutationSpec> originalSpec, CouchbaseException errorException)
public int firstFailureIndex()
public ResponseStatus firstFailureStatus()
public List<MutationSpec> originalSpec()
MutationSpec
that was originally passed to the multi-mutation operation.public MutationSpec firstFailureSpec()
originalSpec()
at index firstFailureIndex()
.Copyright © 2015 Couchbase, Inc.