Class MultiMutationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- com.couchbase.client.core.error.subdoc.SubDocumentException
-
- com.couchbase.client.core.error.subdoc.MultiMutationException
-
- All Implemented Interfaces:
Serializable
public class MultiMutationException extends SubDocumentException
Exception denoting that at least one error occurred when applying multiple mutations using the sub-document API. TODO currently we always do subdoc as multi, even if just 1 op, so may need to rewrite this None of the mutations were applied.- Since:
- 2.0
- Author:
- Simon Baslé
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiMutationException(int index, SubDocumentOpResponseStatus errorStatus, CouchbaseException errorException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
firstFailureIndex()
SubDocumentOpResponseStatus
firstFailureStatus()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MultiMutationException
public MultiMutationException(int index, SubDocumentOpResponseStatus errorStatus, CouchbaseException errorException)
-
-
Method Detail
-
firstFailureIndex
public int firstFailureIndex()
- Returns:
- the zero-based index of the first mutation spec that caused the multi mutation to fail.
-
firstFailureStatus
public SubDocumentOpResponseStatus firstFailureStatus()
- Returns:
- the error status for the first mutation spec that caused the multi mutation to fail.
-
-