@InterfaceStability.Committed @InterfaceAudience.Public public class CannotInsertValueException extends SubDocumentException
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 (over Long.MAX_VALUE
or under Long.MIN_VALUE
).
Note that the other case in the protocol where this can happen is when the value is invalid JSON, but since the SDK serializes data to JSON beforehand, this cannot happen (a TranscodingException
would be thrown instead in this case).
Constructor and Description |
---|
CannotInsertValueException(String reason) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CannotInsertValueException(String reason)
Copyright © 2015 Couchbase, Inc.