Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
io.permazen.kv.fdb.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
FoundationDB error codes.
See Also:
  • Enum Constant Details

    • SUCCESS

      public static final ErrorCode SUCCESS
      Success.
    • END_OF_STREAM

      public static final ErrorCode END_OF_STREAM
      End of stream.
    • OPERATION_FAILED

      public static final ErrorCode OPERATION_FAILED
      Operation failed.
    • WRONG_SHARD_SERVER

      public static final ErrorCode WRONG_SHARD_SERVER
      Shard is not available from this server.
    • TIMED_OUT

      public static final ErrorCode TIMED_OUT
      Operation timed out.
    • COORDINATED_STATE_CONFLICT

      public static final ErrorCode COORDINATED_STATE_CONFLICT
      Conflict occurred while changing coordination information.
    • ALL_ALTERNATIVES_FAILED

      public static final ErrorCode ALL_ALTERNATIVES_FAILED
      All alternatives failed.
    • TRANSACTION_TOO_OLD

      public static final ErrorCode TRANSACTION_TOO_OLD
      Transaction is too old to perform reads or be committed.
    • NO_MORE_SERVERS

      public static final ErrorCode NO_MORE_SERVERS
      Not enough physical servers available.
    • FUTURE_VERSION

      public static final ErrorCode FUTURE_VERSION
      Request for future version.
    • MOVEKEYS_CONFLICT

      public static final ErrorCode MOVEKEYS_CONFLICT
      Conflicting attempts to change data distribution.
    • TLOG_STOPPED

      public static final ErrorCode TLOG_STOPPED
      TLog stopped.
    • SERVER_REQUEST_QUEUE_FULL

      public static final ErrorCode SERVER_REQUEST_QUEUE_FULL
      Server request queue is full.
    • NOT_COMMITTED

      public static final ErrorCode NOT_COMMITTED
      Transaction not committed due to conflict with another transaction.
    • COMMIT_UNKNOWN_RESULT

      public static final ErrorCode COMMIT_UNKNOWN_RESULT
      Transaction may or may not have committed.
    • TRANSACTION_CANCELLED

      public static final ErrorCode TRANSACTION_CANCELLED
      Operation aborted because the transaction was cancelled.
    • CONNECTION_FAILED

      public static final ErrorCode CONNECTION_FAILED
      Network connection failed.
    • COORDINATORS_CHANGED

      public static final ErrorCode COORDINATORS_CHANGED
      Coordination servers have changed.
    • NEW_COORDINATORS_TIMED_OUT

      public static final ErrorCode NEW_COORDINATORS_TIMED_OUT
      New coordination servers did not respond in a timely way.
    • WATCH_CANCELLED

      public static final ErrorCode WATCH_CANCELLED
      Watch cancelled because storage server watch limit exceeded.
    • REQUEST_MAYBE_DELIVERED

      public static final ErrorCode REQUEST_MAYBE_DELIVERED
      Request may or may not have been delivered.
    • TRANSACTION_TIMED_OUT

      public static final ErrorCode TRANSACTION_TIMED_OUT
      Operation aborted because the transaction timed out.
    • TOO_MANY_WATCHES

      public static final ErrorCode TOO_MANY_WATCHES
      Too many watches currently set.
    • LOCALITY_INFORMATION_UNAVAILABLE

      public static final ErrorCode LOCALITY_INFORMATION_UNAVAILABLE
      Locality information not available.
    • WATCHES_DISABLED

      public static final ErrorCode WATCHES_DISABLED
      Watches cannot be set if read your writes is disabled.
    • DEFAULT_ERROR_OR

      public static final ErrorCode DEFAULT_ERROR_OR
      Default error for an ErrorOr object.
    • ACCESSED_UNREADABLE

      public static final ErrorCode ACCESSED_UNREADABLE
      Read or wrote an unreadable key.
    • PROCESS_BEHIND

      public static final ErrorCode PROCESS_BEHIND
      Storage process does not have recent mutations.
    • DATABASE_LOCKED

      public static final ErrorCode DATABASE_LOCKED
      Database is locked.
    • CLUSTER_VERSION_CHANGED

      public static final ErrorCode CLUSTER_VERSION_CHANGED
      The protocol version of the cluster has changed.
    • EXTERNAL_CLIENT_ALREADY_LOADED

      public static final ErrorCode EXTERNAL_CLIENT_ALREADY_LOADED
      External client has already been loaded.
    • LOOKUP_FAILED

      public static final ErrorCode LOOKUP_FAILED
      DNS lookup failed.
    • BROKEN_PROMISE

      public static final ErrorCode BROKEN_PROMISE
      Broken promise.
    • OPERATION_CANCELLED

      public static final ErrorCode OPERATION_CANCELLED
      Asynchronous operation cancelled.
    • FUTURE_RELEASED

      public static final ErrorCode FUTURE_RELEASED
      Future has been released.
    • CONNECTION_LEAKED

      public static final ErrorCode CONNECTION_LEAKED
      Connection object leaked.
    • RECRUITMENT_FAILED

      public static final ErrorCode RECRUITMENT_FAILED
      Recruitment of a server failed.
    • MOVE_TO_REMOVED_SERVER

      public static final ErrorCode MOVE_TO_REMOVED_SERVER
      Attempt to move keys to a storage server that was removed.
    • WORKER_REMOVED

      public static final ErrorCode WORKER_REMOVED
      Normal worker shut down.
    • MASTER_RECOVERY_FAILED

      public static final ErrorCode MASTER_RECOVERY_FAILED
      Master recovery failed.
    • MASTER_MAX_VERSIONS_IN_FLIGHT

      public static final ErrorCode MASTER_MAX_VERSIONS_IN_FLIGHT
      Master hit maximum number of versions in flight.
    • MASTER_TLOG_FAILED

      public static final ErrorCode MASTER_TLOG_FAILED
      Master terminating because a TLog failed.
    • WORKER_RECOVERY_FAILED

      public static final ErrorCode WORKER_RECOVERY_FAILED
      Recovery of a worker process failed.
    • PLEASE_REBOOT

      public static final ErrorCode PLEASE_REBOOT
      Reboot of server process requested.
    • PLEASE_REBOOT_DELETE

      public static final ErrorCode PLEASE_REBOOT_DELETE
      Reboot of server process requested, with deletion of state.
    • MASTER_PROXY_FAILED

      public static final ErrorCode MASTER_PROXY_FAILED
      Master terminating because a Proxy failed.
    • MASTER_RESOLVER_FAILED

      public static final ErrorCode MASTER_RESOLVER_FAILED
      Master terminating because a Resolver failed.
    • PLATFORM_ERROR

      public static final ErrorCode PLATFORM_ERROR
      Platform error.
    • LARGE_ALLOC_FAILED

      public static final ErrorCode LARGE_ALLOC_FAILED
      Large block allocation failed.
    • PERFORMANCE_COUNTER_ERROR

      public static final ErrorCode PERFORMANCE_COUNTER_ERROR
      QueryPerformanceCounter error.
    • IO_ERROR

      public static final ErrorCode IO_ERROR
      Disk i/o operation failed.
    • FILE_NOT_FOUND

      public static final ErrorCode FILE_NOT_FOUND
      File not found.
    • BIND_FAILED

      public static final ErrorCode BIND_FAILED
      Unable to bind to network.
    • FILE_NOT_READABLE

      public static final ErrorCode FILE_NOT_READABLE
      File could not be read.
    • FILE_NOT_WRITABLE

      public static final ErrorCode FILE_NOT_WRITABLE
      File could not be written.
    • NO_CLUSTER_FILE_FOUND

      public static final ErrorCode NO_CLUSTER_FILE_FOUND
      No cluster file found in current directory or default location.
    • FILE_TOO_LARGE

      public static final ErrorCode FILE_TOO_LARGE
      File too large to be read.
    • NON_SEQUENTIAL_OP

      public static final ErrorCode NON_SEQUENTIAL_OP
      Non sequential file operation not allowed.
    • HTTP_BAD_RESPONSE

      public static final ErrorCode HTTP_BAD_RESPONSE
      HTTP response was badly formed.
    • HTTP_NOT_ACCEPTED

      public static final ErrorCode HTTP_NOT_ACCEPTED
      HTTP request not accepted.
    • CHECKSUM_FAILED

      public static final ErrorCode CHECKSUM_FAILED
      A data checksum failed.
    • IO_TIMEOUT

      public static final ErrorCode IO_TIMEOUT
      A disk IO operation failed to complete in a timely manner.
    • FILE_CORRUPT

      public static final ErrorCode FILE_CORRUPT
      A structurally corrupt data file was detected.
    • HTTP_REQUEST_FAILED

      public static final ErrorCode HTTP_REQUEST_FAILED
      HTTP response code indicated failure.
    • HTTP_AUTH_FAILED

      public static final ErrorCode HTTP_AUTH_FAILED
      HTTP request failed due to bad credentials.
    • CLIENT_INVALID_OPERATION

      public static final ErrorCode CLIENT_INVALID_OPERATION
      Invalid API call.
    • COMMIT_READ_INCOMPLETE

      public static final ErrorCode COMMIT_READ_INCOMPLETE
      Commit with incomplete read.
    • TEST_SPECIFICATION_INVALID

      public static final ErrorCode TEST_SPECIFICATION_INVALID
      Invalid test specification.
    • INVERTED_RANGE

      public static final ErrorCode INVERTED_RANGE
      Range begin key larger than end key.
    • INVALID_OPTION_VALUE

      public static final ErrorCode INVALID_OPTION_VALUE
      Option set with an invalid value.
    • INVALID_OPTION

      public static final ErrorCode INVALID_OPTION
      Option not valid in this context.
    • NETWORK_NOT_SETUP

      public static final ErrorCode NETWORK_NOT_SETUP
      Action not possible before the network is configured.
    • NETWORK_ALREADY_SETUP

      public static final ErrorCode NETWORK_ALREADY_SETUP
      Network can be configured only once.
    • READ_VERSION_ALREADY_SET

      public static final ErrorCode READ_VERSION_ALREADY_SET
      Transaction already has a read version set.
    • VERSION_INVALID

      public static final ErrorCode VERSION_INVALID
      Version not valid.
    • RANGE_LIMITS_INVALID

      public static final ErrorCode RANGE_LIMITS_INVALID
      Range limits not valid.
    • INVALID_DATABASE_NAME

      public static final ErrorCode INVALID_DATABASE_NAME
      Database name must be 'DB'.
    • ATTRIBUTE_NOT_FOUND

      public static final ErrorCode ATTRIBUTE_NOT_FOUND
      Attribute not found in string.
    • FUTURE_NOT_SET

      public static final ErrorCode FUTURE_NOT_SET
      Future not ready.
    • FUTURE_NOT_ERROR

      public static final ErrorCode FUTURE_NOT_ERROR
      Future not an error.
    • USED_DURING_COMMIT

      public static final ErrorCode USED_DURING_COMMIT
      Operation issued while a commit was outstanding.
    • INVALID_MUTATION_TYPE

      public static final ErrorCode INVALID_MUTATION_TYPE
      Unrecognized atomic mutation type.
    • ATTRIBUTE_TOO_LARGE

      public static final ErrorCode ATTRIBUTE_TOO_LARGE
      Attribute too large for type int.
    • TRANSACTION_INVALID_VERSION

      public static final ErrorCode TRANSACTION_INVALID_VERSION
      Transaction does not have a valid commit version.
    • NO_COMMIT_VERSION

      public static final ErrorCode NO_COMMIT_VERSION
      Transaction is read-only and therefore does not have a commit version.
    • ENVIRONMENT_VARIABLE_NETWORK_OPTION_FAILED

      public static final ErrorCode ENVIRONMENT_VARIABLE_NETWORK_OPTION_FAILED
      Environment variable network option could not be set.
    • TRANSACTION_READ_ONLY

      public static final ErrorCode TRANSACTION_READ_ONLY
      Attempted to commit a transaction specified as read-only.
    • INCOMPATIBLE_PROTOCOL_VERSION

      public static final ErrorCode INCOMPATIBLE_PROTOCOL_VERSION
      Incompatible protocol version.
    • TRANSACTION_TOO_LARGE

      public static final ErrorCode TRANSACTION_TOO_LARGE
      Transaction exceeds byte limit.
    • KEY_TOO_LARGE

      public static final ErrorCode KEY_TOO_LARGE
      Key length exceeds limit.
    • VALUE_TOO_LARGE

      public static final ErrorCode VALUE_TOO_LARGE
      Value length exceeds limit.
    • CONNECTION_STRING_INVALID

      public static final ErrorCode CONNECTION_STRING_INVALID
      Connection string invalid.
    • ADDRESS_IN_USE

      public static final ErrorCode ADDRESS_IN_USE
      Local address in use.
    • INVALID_LOCAL_ADDRESS

      public static final ErrorCode INVALID_LOCAL_ADDRESS
      Invalid local address.
    • TLS_ERROR

      public static final ErrorCode TLS_ERROR
      TLS error.
    • UNSUPPORTED_OPERATION

      public static final ErrorCode UNSUPPORTED_OPERATION
      Operation is not supported.
    • API_VERSION_UNSET

      public static final ErrorCode API_VERSION_UNSET
      API version is not set.
    • API_VERSION_ALREADY_SET

      public static final ErrorCode API_VERSION_ALREADY_SET
      API version may be set only once.
    • API_VERSION_INVALID

      public static final ErrorCode API_VERSION_INVALID
      API version not valid.
    • API_VERSION_NOT_SUPPORTED

      public static final ErrorCode API_VERSION_NOT_SUPPORTED
      API version not supported.
    • EXACT_MODE_WITHOUT_LIMITS

      public static final ErrorCode EXACT_MODE_WITHOUT_LIMITS
      EXACT streaming mode requires limits, but none were given.
    • INVALID_TUPLE_DATA_TYPE

      public static final ErrorCode INVALID_TUPLE_DATA_TYPE
      Unrecognized data type in packed tuple.
    • INVALID_TUPLE_INDEX

      public static final ErrorCode INVALID_TUPLE_INDEX
      Tuple does not have element at specified index.
    • KEY_NOT_IN_SUBSPACE

      public static final ErrorCode KEY_NOT_IN_SUBSPACE
      Cannot unpack key that is not in subspace.
    • MANUAL_PREFIXES_NOT_ENABLED

      public static final ErrorCode MANUAL_PREFIXES_NOT_ENABLED
      Cannot specify a prefix unless manual prefixes are enabled.
    • PREFIX_IN_PARTITION

      public static final ErrorCode PREFIX_IN_PARTITION
      Cannot specify a prefix in a partition.
    • CANNOT_OPEN_ROOT_DIRECTORY

      public static final ErrorCode CANNOT_OPEN_ROOT_DIRECTORY
      Root directory cannot be opened.
    • DIRECTORY_ALREADY_EXISTS

      public static final ErrorCode DIRECTORY_ALREADY_EXISTS
      Directory already exists.
    • DIRECTORY_DOES_NOT_EXIST

      public static final ErrorCode DIRECTORY_DOES_NOT_EXIST
      Directory does not exist.
    • PARENT_DIRECTORY_DOES_NOT_EXIST

      public static final ErrorCode PARENT_DIRECTORY_DOES_NOT_EXIST
      Directory's parent does not exist.
    • MISMATCHED_LAYER

      public static final ErrorCode MISMATCHED_LAYER
      Directory has already been created with a different layer string.
    • INVALID_DIRECTORY_LAYER_METADATA

      public static final ErrorCode INVALID_DIRECTORY_LAYER_METADATA
      Invalid directory layer metadata.
    • CANNOT_MOVE_DIRECTORY_BETWEEN_PARTITIONS

      public static final ErrorCode CANNOT_MOVE_DIRECTORY_BETWEEN_PARTITIONS
      Directory cannot be moved between partitions.
    • CANNOT_USE_PARTITION_AS_SUBSPACE

      public static final ErrorCode CANNOT_USE_PARTITION_AS_SUBSPACE
      Directory partition cannot be used as subspace.
    • INCOMPATIBLE_DIRECTORY_VERSION

      public static final ErrorCode INCOMPATIBLE_DIRECTORY_VERSION
      Directory layer was created with an incompatible version.
    • DIRECTORY_PREFIX_NOT_EMPTY

      public static final ErrorCode DIRECTORY_PREFIX_NOT_EMPTY
      Database has keys stored at the prefix chosen by the automatic prefix allocator.
    • DIRECTORY_PREFIX_IN_USE

      public static final ErrorCode DIRECTORY_PREFIX_IN_USE
      Directory layer already has a conflicting prefix.
    • INVALID_DESTINATION_DIRECTORY

      public static final ErrorCode INVALID_DESTINATION_DIRECTORY
      Target directory is invalid.
    • CANNOT_MODIFY_ROOT_DIRECTORY

      public static final ErrorCode CANNOT_MODIFY_ROOT_DIRECTORY
      Root directory cannot be modified.
    • INVALID_UUID_SIZE

      public static final ErrorCode INVALID_UUID_SIZE
      UUID is not sixteen bytes.
    • BACKUP_ERROR

      public static final ErrorCode BACKUP_ERROR
      Backup error.
    • RESTORE_ERROR

      public static final ErrorCode RESTORE_ERROR
      Restore error.
    • BACKUP_DUPLICATE

      public static final ErrorCode BACKUP_DUPLICATE
      Backup duplicate request.
    • BACKUP_UNNEEDED

      public static final ErrorCode BACKUP_UNNEEDED
      Backup unneeded request.
    • BACKUP_BAD_BLOCK_SIZE

      public static final ErrorCode BACKUP_BAD_BLOCK_SIZE
      Backup file block size too small.
    • BACKUP_INVALID_URL

      public static final ErrorCode BACKUP_INVALID_URL
      Backup Container URL invalid.
    • BACKUP_INVALID_INFO

      public static final ErrorCode BACKUP_INVALID_INFO
      Backup Container URL invalid.
    • BACKUP_CANNOT_EXPIRE

      public static final ErrorCode BACKUP_CANNOT_EXPIRE
      Cannot expire requested data from backup without violating minimum restorability.
    • BACKUP_AUTH_MISSING

      public static final ErrorCode BACKUP_AUTH_MISSING
      Cannot find authentication details (such as a password or secret key) for the specified Backup Container URL.
    • BACKUP_AUTH_UNREADABLE

      public static final ErrorCode BACKUP_AUTH_UNREADABLE
      Cannot read or parse one or more sources of authentication information for Backup Container URLs.
    • RESTORE_INVALID_VERSION

      public static final ErrorCode RESTORE_INVALID_VERSION
      Invalid restore version.
    • RESTORE_CORRUPTED_DATA

      public static final ErrorCode RESTORE_CORRUPTED_DATA
      Corrupted backup data.
    • RESTORE_MISSING_DATA

      public static final ErrorCode RESTORE_MISSING_DATA
      Missing backup data.
    • RESTORE_DUPLICATE_TAG

      public static final ErrorCode RESTORE_DUPLICATE_TAG
      Restore duplicate request.
    • RESTORE_UNKNOWN_TAG

      public static final ErrorCode RESTORE_UNKNOWN_TAG
      Restore tag does not exist.
    • RESTORE_UNKNOWN_FILE_TYPE

      public static final ErrorCode RESTORE_UNKNOWN_FILE_TYPE
      Unknown backup/restore file type.
    • RESTORE_UNSUPPORTED_FILE_VERSION

      public static final ErrorCode RESTORE_UNSUPPORTED_FILE_VERSION
      Unsupported backup file version.
    • RESTORE_BAD_READ

      public static final ErrorCode RESTORE_BAD_READ
      Unexpected number of bytes read.
    • RESTORE_CORRUPTED_DATA_PADDING

      public static final ErrorCode RESTORE_CORRUPTED_DATA_PADDING
      Backup file has unexpected padding bytes.
    • RESTORE_DESTINATION_NOT_EMPTY

      public static final ErrorCode RESTORE_DESTINATION_NOT_EMPTY
      Attempted to restore into a non-empty destination database.
    • RESTORE_DUPLICATE_UID

      public static final ErrorCode RESTORE_DUPLICATE_UID
      Attempted to restore using a UID that had been used for an aborted restore.
    • TASK_INVALID_VERSION

      public static final ErrorCode TASK_INVALID_VERSION
      Invalid task version.
    • TASK_INTERRUPTED

      public static final ErrorCode TASK_INTERRUPTED
      Task execution stopped due to timeout, abort, or completion by another worker.
    • KEY_NOT_FOUND

      public static final ErrorCode KEY_NOT_FOUND
      Expected key is missing.
    • UNKNOWN_ERROR

      public static final ErrorCode UNKNOWN_ERROR
      An unknown error occurred.
    • INTERNAL_ERROR

      public static final ErrorCode INTERNAL_ERROR
      An internal error occurred.
  • Method Details

    • values

      public static ErrorCode[] 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

      public static ErrorCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
      Get numerical error code.
      Returns:
      error code
    • getDescription

      public String getDescription()
      Get human readable description.
      Returns:
      description
    • forCode

      public static ErrorCode forCode(int code)
      Get the ErrorCode instance with the given error code, if any.
      Parameters:
      code - numerical error code
      Returns:
      corresponding ErrorCode, or null if none exists