Class ValueInvalidException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- com.couchbase.client.core.error.subdoc.ValueInvalidException
-
- All Implemented Interfaces:
Serializable
public class ValueInvalidException extends CouchbaseException
Subdocument exception thrown when the provided value cannot be inserted at the given path. It is actually thrown when the delta in an counter operation is valid, but applying that delta would result in an out-of-range number (overLong.MAX_VALUE
or underLong.MIN_VALUE
).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueInvalidException(SubDocumentErrorContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubDocumentErrorContext
context()
Returns the error context, if present.-
Methods inherited from class com.couchbase.client.core.error.CouchbaseException
toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ValueInvalidException
public ValueInvalidException(SubDocumentErrorContext ctx)
-
-
Method Detail
-
context
@Uncommitted public SubDocumentErrorContext context()
Description copied from class:CouchbaseException
Returns the error context, if present.- Overrides:
context
in classCouchbaseException
-
-