public enum ErrorCode extends Enum<ErrorCode>
Enum Constant and Description |
---|
ACCESSED_UNREADABLE
Read or wrote an unreadable key.
|
ADDRESS_IN_USE
Local address in use.
|
ALL_ALTERNATIVES_FAILED
All alternatives failed.
|
API_VERSION_ALREADY_SET
API version may be set only once.
|
API_VERSION_INVALID
API version not valid.
|
API_VERSION_NOT_SUPPORTED
API version not supported.
|
API_VERSION_UNSET
API version is not set.
|
ATTRIBUTE_NOT_FOUND
Attribute not found in string.
|
ATTRIBUTE_TOO_LARGE
Attribute too large for type int.
|
BACKUP_AUTH_MISSING
Cannot find authentication details (such as a password or secret key) for the specified Backup Container URL.
|
BACKUP_AUTH_UNREADABLE
Cannot read or parse one or more sources of authentication information for Backup Container URLs.
|
BACKUP_BAD_BLOCK_SIZE
Backup file block size too small.
|
BACKUP_CANNOT_EXPIRE
Cannot expire requested data from backup without violating minimum restorability.
|
BACKUP_DUPLICATE
Backup duplicate request.
|
BACKUP_ERROR
Backup error.
|
BACKUP_INVALID_INFO
Backup Container URL invalid.
|
BACKUP_INVALID_URL
Backup Container URL invalid.
|
BACKUP_UNNEEDED
Backup unneeded request.
|
BIND_FAILED
Unable to bind to network.
|
BROKEN_PROMISE
Broken promise.
|
CANNOT_MODIFY_ROOT_DIRECTORY
Root directory cannot be modified.
|
CANNOT_MOVE_DIRECTORY_BETWEEN_PARTITIONS
Directory cannot be moved between partitions.
|
CANNOT_OPEN_ROOT_DIRECTORY
Root directory cannot be opened.
|
CANNOT_USE_PARTITION_AS_SUBSPACE
Directory partition cannot be used as subspace.
|
CHECKSUM_FAILED
A data checksum failed.
|
CLIENT_INVALID_OPERATION
Invalid API call.
|
CLUSTER_VERSION_CHANGED
The protocol version of the cluster has changed.
|
COMMIT_READ_INCOMPLETE
Commit with incomplete read.
|
COMMIT_UNKNOWN_RESULT
Transaction may or may not have committed.
|
CONNECTION_FAILED
Network connection failed.
|
CONNECTION_LEAKED
Connection object leaked.
|
CONNECTION_STRING_INVALID
Connection string invalid.
|
COORDINATED_STATE_CONFLICT
Conflict occurred while changing coordination information.
|
COORDINATORS_CHANGED
Coordination servers have changed.
|
DATABASE_LOCKED
Database is locked.
|
DEFAULT_ERROR_OR
Default error for an ErrorOr object.
|
DIRECTORY_ALREADY_EXISTS
Directory already exists.
|
DIRECTORY_DOES_NOT_EXIST
Directory does not exist.
|
DIRECTORY_PREFIX_IN_USE
Directory layer already has a conflicting prefix.
|
DIRECTORY_PREFIX_NOT_EMPTY
Database has keys stored at the prefix chosen by the automatic prefix allocator.
|
END_OF_STREAM
End of stream.
|
ENVIRONMENT_VARIABLE_NETWORK_OPTION_FAILED
Environment variable network option could not be set.
|
EXACT_MODE_WITHOUT_LIMITS
EXACT streaming mode requires limits, but none were given.
|
EXTERNAL_CLIENT_ALREADY_LOADED
External client has already been loaded.
|
FILE_CORRUPT
A structurally corrupt data file was detected.
|
FILE_NOT_FOUND
File not found.
|
FILE_NOT_READABLE
File could not be read.
|
FILE_NOT_WRITABLE
File could not be written.
|
FILE_TOO_LARGE
File too large to be read.
|
FUTURE_NOT_ERROR
Future not an error.
|
FUTURE_NOT_SET
Future not ready.
|
FUTURE_RELEASED
Future has been released.
|
FUTURE_VERSION
Request for future version.
|
HTTP_AUTH_FAILED
HTTP request failed due to bad credentials.
|
HTTP_BAD_RESPONSE
HTTP response was badly formed.
|
HTTP_NOT_ACCEPTED
HTTP request not accepted.
|
HTTP_REQUEST_FAILED
HTTP response code indicated failure.
|
INCOMPATIBLE_DIRECTORY_VERSION
Directory layer was created with an incompatible version.
|
INCOMPATIBLE_PROTOCOL_VERSION
Incompatible protocol version.
|
INTERNAL_ERROR
An internal error occurred.
|
INVALID_DATABASE_NAME
Database name must be 'DB'.
|
INVALID_DESTINATION_DIRECTORY
Target directory is invalid.
|
INVALID_DIRECTORY_LAYER_METADATA
Invalid directory layer metadata.
|
INVALID_LOCAL_ADDRESS
Invalid local address.
|
INVALID_MUTATION_TYPE
Unrecognized atomic mutation type.
|
INVALID_OPTION
Option not valid in this context.
|
INVALID_OPTION_VALUE
Option set with an invalid value.
|
INVALID_TUPLE_DATA_TYPE
Unrecognized data type in packed tuple.
|
INVALID_TUPLE_INDEX
Tuple does not have element at specified index.
|
INVALID_UUID_SIZE
UUID is not sixteen bytes.
|
INVERTED_RANGE
Range begin key larger than end key.
|
IO_ERROR
Disk i/o operation failed.
|
IO_TIMEOUT
A disk IO operation failed to complete in a timely manner.
|
KEY_NOT_FOUND
Expected key is missing.
|
KEY_NOT_IN_SUBSPACE
Cannot unpack key that is not in subspace.
|
KEY_OUTSIDE_LEGAL_RANGE
Key outside legal range.
|
KEY_TOO_LARGE
Key length exceeds limit.
|
LARGE_ALLOC_FAILED
Large block allocation failed.
|
LOCALITY_INFORMATION_UNAVAILABLE
Locality information not available.
|
LOOKUP_FAILED
DNS lookup failed.
|
MANUAL_PREFIXES_NOT_ENABLED
Cannot specify a prefix unless manual prefixes are enabled.
|
MASTER_MAX_VERSIONS_IN_FLIGHT
Master hit maximum number of versions in flight.
|
MASTER_PROXY_FAILED
Master terminating because a Proxy failed.
|
MASTER_RECOVERY_FAILED
Master recovery failed.
|
MASTER_RESOLVER_FAILED
Master terminating because a Resolver failed.
|
MASTER_TLOG_FAILED
Master terminating because a TLog failed.
|
MISMATCHED_LAYER
Directory has already been created with a different layer string.
|
MOVE_TO_REMOVED_SERVER
Attempt to move keys to a storage server that was removed.
|
MOVEKEYS_CONFLICT
Conflicting attempts to change data distribution.
|
NETWORK_ALREADY_SETUP
Network can be configured only once.
|
NETWORK_NOT_SETUP
Action not possible before the network is configured.
|
NEW_COORDINATORS_TIMED_OUT
New coordination servers did not respond in a timely way.
|
NO_CLUSTER_FILE_FOUND
No cluster file found in current directory or default location.
|
NO_COMMIT_VERSION
Transaction is read-only and therefore does not have a commit version.
|
NO_MORE_SERVERS
Not enough physical servers available.
|
NON_SEQUENTIAL_OP
Non sequential file operation not allowed.
|
NOT_COMMITTED
Transaction not committed due to conflict with another transaction.
|
OPERATION_CANCELLED
Asynchronous operation cancelled.
|
OPERATION_FAILED
Operation failed.
|
PARENT_DIRECTORY_DOES_NOT_EXIST
Directory's parent does not exist.
|
PERFORMANCE_COUNTER_ERROR
QueryPerformanceCounter error.
|
PLATFORM_ERROR
Platform error.
|
PLEASE_REBOOT
Reboot of server process requested.
|
PLEASE_REBOOT_DELETE
Reboot of server process requested, with deletion of state.
|
PREFIX_IN_PARTITION
Cannot specify a prefix in a partition.
|
PROCESS_BEHIND
Storage process does not have recent mutations.
|
RANGE_LIMITS_INVALID
Range limits not valid.
|
READ_VERSION_ALREADY_SET
Transaction already has a read version set.
|
RECRUITMENT_FAILED
Recruitment of a server failed.
|
REQUEST_MAYBE_DELIVERED
Request may or may not have been delivered.
|
RESTORE_BAD_READ
Unexpected number of bytes read.
|
RESTORE_CORRUPTED_DATA
Corrupted backup data.
|
RESTORE_CORRUPTED_DATA_PADDING
Backup file has unexpected padding bytes.
|
RESTORE_DESTINATION_NOT_EMPTY
Attempted to restore into a non-empty destination database.
|
RESTORE_DUPLICATE_TAG
Restore duplicate request.
|
RESTORE_DUPLICATE_UID
Attempted to restore using a UID that had been used for an aborted restore.
|
RESTORE_ERROR
Restore error.
|
RESTORE_INVALID_VERSION
Invalid restore version.
|
RESTORE_MISSING_DATA
Missing backup data.
|
RESTORE_UNKNOWN_FILE_TYPE
Unknown backup/restore file type.
|
RESTORE_UNKNOWN_TAG
Restore tag does not exist.
|
RESTORE_UNSUPPORTED_FILE_VERSION
Unsupported backup file version.
|
SERVER_REQUEST_QUEUE_FULL
Server request queue is full.
|
SUCCESS
Success.
|
TASK_INTERRUPTED
Task execution stopped due to timeout, abort, or completion by another worker.
|
TASK_INVALID_VERSION
Invalid task version.
|
TEST_SPECIFICATION_INVALID
Invalid test specification.
|
TIMED_OUT
Operation timed out.
|
TLOG_STOPPED
TLog stopped.
|
TLS_ERROR
TLS error.
|
TOO_MANY_WATCHES
Too many watches currently set.
|
TRANSACTION_CANCELLED
Operation aborted because the transaction was cancelled.
|
TRANSACTION_INVALID_VERSION
Transaction does not have a valid commit version.
|
TRANSACTION_READ_ONLY
Attempted to commit a transaction specified as read-only.
|
TRANSACTION_TIMED_OUT
Operation aborted because the transaction timed out.
|
TRANSACTION_TOO_LARGE
Transaction exceeds byte limit.
|
TRANSACTION_TOO_OLD
Transaction is too old to perform reads or be committed.
|
UNKNOWN_ERROR
An unknown error occurred.
|
UNSUPPORTED_OPERATION
Operation is not supported.
|
USED_DURING_COMMIT
Operation issued while a commit was outstanding.
|
VALUE_TOO_LARGE
Value length exceeds limit.
|
VERSION_INVALID
Version not valid.
|
WATCH_CANCELLED
Watch cancelled because storage server watch limit exceeded.
|
WATCHES_DISABLED
Watches cannot be set if read your writes is disabled.
|
WORKER_RECOVERY_FAILED
Recovery of a worker process failed.
|
WORKER_REMOVED
Normal worker shut down.
|
WRONG_SHARD_SERVER
Shard is not available from this server.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
forCode(int code)
Get the
ErrorCode instance with the given error code, if any. |
int |
getCode()
Get numerical error code.
|
String |
getDescription()
Get human readable description.
|
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode SUCCESS
public static final ErrorCode END_OF_STREAM
public static final ErrorCode OPERATION_FAILED
public static final ErrorCode WRONG_SHARD_SERVER
public static final ErrorCode TIMED_OUT
public static final ErrorCode COORDINATED_STATE_CONFLICT
public static final ErrorCode ALL_ALTERNATIVES_FAILED
public static final ErrorCode TRANSACTION_TOO_OLD
public static final ErrorCode NO_MORE_SERVERS
public static final ErrorCode FUTURE_VERSION
public static final ErrorCode MOVEKEYS_CONFLICT
public static final ErrorCode TLOG_STOPPED
public static final ErrorCode SERVER_REQUEST_QUEUE_FULL
public static final ErrorCode NOT_COMMITTED
public static final ErrorCode COMMIT_UNKNOWN_RESULT
public static final ErrorCode TRANSACTION_CANCELLED
public static final ErrorCode CONNECTION_FAILED
public static final ErrorCode COORDINATORS_CHANGED
public static final ErrorCode NEW_COORDINATORS_TIMED_OUT
public static final ErrorCode WATCH_CANCELLED
public static final ErrorCode REQUEST_MAYBE_DELIVERED
public static final ErrorCode TRANSACTION_TIMED_OUT
public static final ErrorCode TOO_MANY_WATCHES
public static final ErrorCode LOCALITY_INFORMATION_UNAVAILABLE
public static final ErrorCode WATCHES_DISABLED
public static final ErrorCode DEFAULT_ERROR_OR
public static final ErrorCode ACCESSED_UNREADABLE
public static final ErrorCode PROCESS_BEHIND
public static final ErrorCode DATABASE_LOCKED
public static final ErrorCode CLUSTER_VERSION_CHANGED
public static final ErrorCode EXTERNAL_CLIENT_ALREADY_LOADED
public static final ErrorCode LOOKUP_FAILED
public static final ErrorCode BROKEN_PROMISE
public static final ErrorCode OPERATION_CANCELLED
public static final ErrorCode FUTURE_RELEASED
public static final ErrorCode CONNECTION_LEAKED
public static final ErrorCode RECRUITMENT_FAILED
public static final ErrorCode MOVE_TO_REMOVED_SERVER
public static final ErrorCode WORKER_REMOVED
public static final ErrorCode MASTER_RECOVERY_FAILED
public static final ErrorCode MASTER_MAX_VERSIONS_IN_FLIGHT
public static final ErrorCode MASTER_TLOG_FAILED
public static final ErrorCode WORKER_RECOVERY_FAILED
public static final ErrorCode PLEASE_REBOOT
public static final ErrorCode PLEASE_REBOOT_DELETE
public static final ErrorCode MASTER_PROXY_FAILED
public static final ErrorCode MASTER_RESOLVER_FAILED
public static final ErrorCode PLATFORM_ERROR
public static final ErrorCode LARGE_ALLOC_FAILED
public static final ErrorCode PERFORMANCE_COUNTER_ERROR
public static final ErrorCode IO_ERROR
public static final ErrorCode FILE_NOT_FOUND
public static final ErrorCode BIND_FAILED
public static final ErrorCode FILE_NOT_READABLE
public static final ErrorCode FILE_NOT_WRITABLE
public static final ErrorCode NO_CLUSTER_FILE_FOUND
public static final ErrorCode FILE_TOO_LARGE
public static final ErrorCode NON_SEQUENTIAL_OP
public static final ErrorCode HTTP_BAD_RESPONSE
public static final ErrorCode HTTP_NOT_ACCEPTED
public static final ErrorCode CHECKSUM_FAILED
public static final ErrorCode IO_TIMEOUT
public static final ErrorCode FILE_CORRUPT
public static final ErrorCode HTTP_REQUEST_FAILED
public static final ErrorCode HTTP_AUTH_FAILED
public static final ErrorCode CLIENT_INVALID_OPERATION
public static final ErrorCode COMMIT_READ_INCOMPLETE
public static final ErrorCode TEST_SPECIFICATION_INVALID
public static final ErrorCode KEY_OUTSIDE_LEGAL_RANGE
public static final ErrorCode INVERTED_RANGE
public static final ErrorCode INVALID_OPTION_VALUE
public static final ErrorCode INVALID_OPTION
public static final ErrorCode NETWORK_NOT_SETUP
public static final ErrorCode NETWORK_ALREADY_SETUP
public static final ErrorCode READ_VERSION_ALREADY_SET
public static final ErrorCode VERSION_INVALID
public static final ErrorCode RANGE_LIMITS_INVALID
public static final ErrorCode INVALID_DATABASE_NAME
public static final ErrorCode ATTRIBUTE_NOT_FOUND
public static final ErrorCode FUTURE_NOT_SET
public static final ErrorCode FUTURE_NOT_ERROR
public static final ErrorCode USED_DURING_COMMIT
public static final ErrorCode INVALID_MUTATION_TYPE
public static final ErrorCode ATTRIBUTE_TOO_LARGE
public static final ErrorCode TRANSACTION_INVALID_VERSION
public static final ErrorCode NO_COMMIT_VERSION
public static final ErrorCode ENVIRONMENT_VARIABLE_NETWORK_OPTION_FAILED
public static final ErrorCode TRANSACTION_READ_ONLY
public static final ErrorCode INCOMPATIBLE_PROTOCOL_VERSION
public static final ErrorCode TRANSACTION_TOO_LARGE
public static final ErrorCode KEY_TOO_LARGE
public static final ErrorCode VALUE_TOO_LARGE
public static final ErrorCode CONNECTION_STRING_INVALID
public static final ErrorCode ADDRESS_IN_USE
public static final ErrorCode INVALID_LOCAL_ADDRESS
public static final ErrorCode TLS_ERROR
public static final ErrorCode UNSUPPORTED_OPERATION
public static final ErrorCode API_VERSION_UNSET
public static final ErrorCode API_VERSION_ALREADY_SET
public static final ErrorCode API_VERSION_INVALID
public static final ErrorCode API_VERSION_NOT_SUPPORTED
public static final ErrorCode EXACT_MODE_WITHOUT_LIMITS
public static final ErrorCode INVALID_TUPLE_DATA_TYPE
public static final ErrorCode INVALID_TUPLE_INDEX
public static final ErrorCode KEY_NOT_IN_SUBSPACE
public static final ErrorCode MANUAL_PREFIXES_NOT_ENABLED
public static final ErrorCode PREFIX_IN_PARTITION
public static final ErrorCode CANNOT_OPEN_ROOT_DIRECTORY
public static final ErrorCode DIRECTORY_ALREADY_EXISTS
public static final ErrorCode DIRECTORY_DOES_NOT_EXIST
public static final ErrorCode PARENT_DIRECTORY_DOES_NOT_EXIST
public static final ErrorCode MISMATCHED_LAYER
public static final ErrorCode INVALID_DIRECTORY_LAYER_METADATA
public static final ErrorCode CANNOT_MOVE_DIRECTORY_BETWEEN_PARTITIONS
public static final ErrorCode CANNOT_USE_PARTITION_AS_SUBSPACE
public static final ErrorCode INCOMPATIBLE_DIRECTORY_VERSION
public static final ErrorCode DIRECTORY_PREFIX_NOT_EMPTY
public static final ErrorCode DIRECTORY_PREFIX_IN_USE
public static final ErrorCode INVALID_DESTINATION_DIRECTORY
public static final ErrorCode CANNOT_MODIFY_ROOT_DIRECTORY
public static final ErrorCode INVALID_UUID_SIZE
public static final ErrorCode BACKUP_ERROR
public static final ErrorCode RESTORE_ERROR
public static final ErrorCode BACKUP_DUPLICATE
public static final ErrorCode BACKUP_UNNEEDED
public static final ErrorCode BACKUP_BAD_BLOCK_SIZE
public static final ErrorCode BACKUP_INVALID_URL
public static final ErrorCode BACKUP_INVALID_INFO
public static final ErrorCode BACKUP_CANNOT_EXPIRE
public static final ErrorCode BACKUP_AUTH_MISSING
public static final ErrorCode BACKUP_AUTH_UNREADABLE
public static final ErrorCode RESTORE_INVALID_VERSION
public static final ErrorCode RESTORE_CORRUPTED_DATA
public static final ErrorCode RESTORE_MISSING_DATA
public static final ErrorCode RESTORE_DUPLICATE_TAG
public static final ErrorCode RESTORE_UNKNOWN_TAG
public static final ErrorCode RESTORE_UNKNOWN_FILE_TYPE
public static final ErrorCode RESTORE_UNSUPPORTED_FILE_VERSION
public static final ErrorCode RESTORE_BAD_READ
public static final ErrorCode RESTORE_CORRUPTED_DATA_PADDING
public static final ErrorCode RESTORE_DESTINATION_NOT_EMPTY
public static final ErrorCode RESTORE_DUPLICATE_UID
public static final ErrorCode TASK_INVALID_VERSION
public static final ErrorCode TASK_INTERRUPTED
public static final ErrorCode KEY_NOT_FOUND
public static final ErrorCode UNKNOWN_ERROR
public static final ErrorCode INTERNAL_ERROR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 int getCode()
public String getDescription()
public static ErrorCode forCode(int code)
ErrorCode
instance with the given error code, if any.code
- numerical error codeErrorCode
, or null if none existsCopyright © 2022. All rights reserved.