Package com.couchbase.client.core.msg.kv
Enum SubDocumentOpResponseStatus
java.lang.Object
java.lang.Enum<SubDocumentOpResponseStatus>
com.couchbase.client.core.msg.kv.SubDocumentOpResponseStatus
- All Implemented Interfaces:
Serializable
,Comparable<SubDocumentOpResponseStatus>
The
SubDocumentOpResponseStatus
describes what kind of response came back for a specific
subdoc operation request.- Since:
- 2.0.0
-
Enum Constant Summary
Enum ConstantDescriptionThe ReviveDocument flag can only be used on deleted documents (tombstones).The operation would result in a number outside the valid rangeThe existing document is not valid JSONThe document has too many levels to parseAn invalid combination of commands was specifiedSpecified key was successfully found, but one or more path operations failedThe existing number is out of the valid range for arithmetic operationsThe requested operation requires the path to not already exist, but it existsThe path's syntax was incorrectOne of path components treats a non-dictionary as a dictionary, or a non-array as an array, or value the path points to is not a numberThe provided path does not exist in the documentThe path provided is too large: either the string is too long, or it contains too many componentsIndicates a successful response in general.The subdoc operation completed successfully on the deleted documentUnknown error.The value provided will invalidate the JSON if insertedInserting the value would cause the document to be too deepCannot modify this virtual attribute.An invalid combination of operations, using macros when not using extended attributesOnly single xattr key may be accessed at the same timeInvalid XATTR order.User does not have permission to access this attribute.The server has no knowledge of the requested macroUnknown virtual attribute. -
Method Summary
Modifier and TypeMethodDescriptionboolean
success()
static SubDocumentOpResponseStatus
Returns the enum constant of this type with the specified name.static SubDocumentOpResponseStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Indicates a successful response in general. -
SUCCESS_DELETED_DOCUMENT
The subdoc operation completed successfully on the deleted document -
PATH_NOT_FOUND
The provided path does not exist in the document -
PATH_MISMATCH
One of path components treats a non-dictionary as a dictionary, or a non-array as an array, or value the path points to is not a number -
PATH_INVALID
The path's syntax was incorrect -
PATH_TOO_BIG
The path provided is too large: either the string is too long, or it contains too many components -
DOC_TOO_DEEP
The document has too many levels to parse -
VALUE_CANTINSERT
The value provided will invalidate the JSON if inserted -
DOC_NOT_JSON
The existing document is not valid JSON -
NUM_RANGE
The existing number is out of the valid range for arithmetic operations -
DELTA_RANGE
The operation would result in a number outside the valid range -
PATH_EXISTS
The requested operation requires the path to not already exist, but it exists -
VALUE_TOO_DEEP
Inserting the value would cause the document to be too deep -
INVALID_COMBO
An invalid combination of commands was specified -
MULTI_PATH_FAILURE
Specified key was successfully found, but one or more path operations failed -
XATTR_INVALID_FLAG_COMBO
An invalid combination of operations, using macros when not using extended attributes -
XATTR_INVALID_KEY_COMBO
Only single xattr key may be accessed at the same time -
XATTR_UNKNOWN_MACRO
The server has no knowledge of the requested macro -
XATTR_UNKNOWN_VATTR
Unknown virtual attribute. -
XATTR_CANNOT_MODIFY_VATTR
Cannot modify this virtual attribute. -
XATTR_INVALID_ORDER
Invalid XATTR order. -
XATTR_NO_ACCESS
User does not have permission to access this attribute. -
CAN_ONLY_REVIVE_DELETED_DOCUMENTS
The ReviveDocument flag can only be used on deleted documents (tombstones). -
UNKNOWN
Unknown error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
success
public boolean success()
-