Class DeltaInvalidException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- com.couchbase.client.core.error.subdoc.DeltaInvalidException
-
- All Implemented Interfaces:
Serializable
public class DeltaInvalidException extends CouchbaseException
Subdocument exception thrown when the delta in an arithmetic operation (eg counter) is invalid. In this SDK, this is equivalent to saying that the delta is zero. Note that the server also returns the corresponding error code when the delta value itself is too big, or not a number, but since the SDK enforces deltas to be of type long, these cases shouldn't come up.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeltaInvalidException(SubDocumentErrorContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubDocumentErrorContextcontext()Returns the error context, if present.-
Methods inherited from class com.couchbase.client.core.error.CouchbaseException
getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DeltaInvalidException
public DeltaInvalidException(SubDocumentErrorContext ctx)
-
-
Method Detail
-
context
@Uncommitted public SubDocumentErrorContext context()
Description copied from class:CouchbaseExceptionReturns the error context, if present.- Overrides:
contextin classCouchbaseException
-
-