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