Class BadDeltaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.CouchbaseException
-
- com.couchbase.client.java.error.subdoc.SubDocumentException
-
- com.couchbase.client.java.error.subdoc.BadDeltaException
-
- All Implemented Interfaces:
Serializable
@Committed @Public public class BadDeltaException extends SubDocumentException
Subdocument exception thrown when the delta in an arithmetic operation (eg counter) is invalid. In this SDK, this is equivalent to say 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.- Since:
- 2.2
- Author:
- Simon Baslé
- See Also:
if the delta is valid but applying it to the current value would cause an overflow.
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BadDeltaException()
BadDeltaException(String message)
-
Method Summary
-
Methods inherited from class com.couchbase.client.core.CouchbaseException
details, details, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BadDeltaException
public BadDeltaException(String message)
-
BadDeltaException
public BadDeltaException()
-
-