public enum ResponseStatus extends Enum<ResponseStatus>
Typesafe status code returned by CouchbaseResponse
s.
ResponseStatusConverter
,
KeyValueStatus
Enum Constant and Description |
---|
ACCESS_ERROR
Access error.
|
COMMAND_UNAVAILABLE
Indicates that the request type was dispatched but not known by the server or it is not supported.
|
EXISTS
If the request expected the document to not exist, but it existed already.
|
FAILURE
Generic failure status.
|
INTERNAL_ERROR
The remote service failed for an internal reason.
|
INVALID_ARGUMENTS
The service reported that the request arguments are invalid.
|
LOCKED
Indicates that the document is locked at the moment.
|
NOT_EXISTS
If the request expected the document to exit, but it didn't exist already.
|
NOT_STORED
The response indicates that a mutation try did not happen properly.
|
OUT_OF_MEMORY
The requested service is currently out of memory.
|
RANGE_ERROR
The server reports that requested vBucketID or sequence number does
not fit allowed range.
|
RETRY
The underlying response indicates retry is in order.
|
ROLLBACK
The server tells client to rollback its view of the DCP stream state.
|
SERVER_BUSY
Indicates that the server is busy, which is considered to be transient.
|
SUBDOC_DELTA_RANGE
Subdocument error indicating that for arithmetic subdoc operations, the operation will make the value too large.
|
SUBDOC_DOC_NOT_JSON
Subdocument error indicating that the target document is not flagged or recognized as JSON.
|
SUBDOC_DOC_TOO_DEEP
Subdocument error indicating that the target document's level of JSON nesting is too deep to be processed by the subdoc service.
|
SUBDOC_INVALID_COMBO
Subdocument error indicating that, in a multi-specification, an invalid combination of commands were specified,
including the case where too many paths were specified.
|
SUBDOC_MULTI_PATH_FAILURE
Subdocument error indicating that, in a multi-specification, one or more commands failed to execute on a document
which exists (ie.
|
SUBDOC_NUM_RANGE
Subdocument error indicating that, for arithmetic subdoc operations, the existing number is already too large.
|
SUBDOC_PATH_EXISTS
Subdocument error indicating that the last component of the path already exist despite the mutation operation
expecting it not to exist (the mutation was expecting to create only the last part of the path and store the
fragment there).
|
SUBDOC_PATH_INVALID
Subdocument error indicating that the path provided is invalid.
|
SUBDOC_PATH_MISMATCH
Subdocument error indicating one of the path components was denoting a wrong type (eg.
|
SUBDOC_PATH_NOT_FOUND
Subdocument error indicating the path inside the JSON is invalid.
|
SUBDOC_PATH_TOO_BIG
Subdocument error indicating that the path is too large (ie.
|
SUBDOC_VALUE_CANTINSERT
Subdocument error indicating that a mutation fragment cannot be applied without resulting in invalid JSON.
|
SUBDOC_VALUE_TOO_DEEP
Subdocument error indicating that inserting the fragment would make the document too deep.
|
SUBDOC_XATTR_INVALID_KEY_COMBO
Subdocument extended attribute error indicating use of key paths from different namespaces
|
SUBDOC_XATTR_UNKNOWN_MACRO
Subdocument extended attribute error indicating the server couldn't expand the supplied macro
|
SUCCESS
If the response is successful and finished.
|
TEMPORARY_FAILURE
Indicates a failure which is considered to be transient.
|
TOO_BIG
The response indicates that the request was too big for some reason.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSuccess()
Check if the current
ResponseStatus is success. |
static ResponseStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatus SUCCESS
public static final ResponseStatus EXISTS
public static final ResponseStatus NOT_EXISTS
public static final ResponseStatus NOT_STORED
public static final ResponseStatus TOO_BIG
public static final ResponseStatus TEMPORARY_FAILURE
public static final ResponseStatus SERVER_BUSY
public static final ResponseStatus COMMAND_UNAVAILABLE
public static final ResponseStatus OUT_OF_MEMORY
public static final ResponseStatus INVALID_ARGUMENTS
public static final ResponseStatus ACCESS_ERROR
public static final ResponseStatus INTERNAL_ERROR
public static final ResponseStatus FAILURE
public static final ResponseStatus RETRY
public static final ResponseStatus RANGE_ERROR
public static final ResponseStatus ROLLBACK
public static final ResponseStatus SUBDOC_PATH_NOT_FOUND
public static final ResponseStatus SUBDOC_PATH_MISMATCH
public static final ResponseStatus SUBDOC_PATH_INVALID
public static final ResponseStatus SUBDOC_PATH_TOO_BIG
public static final ResponseStatus SUBDOC_DOC_TOO_DEEP
public static final ResponseStatus SUBDOC_VALUE_CANTINSERT
public static final ResponseStatus SUBDOC_DOC_NOT_JSON
public static final ResponseStatus SUBDOC_NUM_RANGE
public static final ResponseStatus SUBDOC_DELTA_RANGE
public static final ResponseStatus SUBDOC_PATH_EXISTS
public static final ResponseStatus SUBDOC_VALUE_TOO_DEEP
public static final ResponseStatus SUBDOC_INVALID_COMBO
public static final ResponseStatus SUBDOC_MULTI_PATH_FAILURE
public static final ResponseStatus SUBDOC_XATTR_UNKNOWN_MACRO
public static final ResponseStatus SUBDOC_XATTR_INVALID_KEY_COMBO
public static final ResponseStatus LOCKED
public static ResponseStatus[] values()
for (ResponseStatus c : ResponseStatus.values()) System.out.println(c);
public static ResponseStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isSuccess()
Check if the current ResponseStatus
is success.
Copyright © 2018 Couchbase, Inc.. All rights reserved.