linkahead/status_code.h

namespace linkahead

Enums

enum StatusCode

StatusCodes represent the status of this client, it’s connections, configuration and so on.

In contrast to MessageCodes, these status codes do not represent the status of the entities of a transaction or of the server (or only inasmuch the GENERIC_TRANSACTION_ERROR indicates that there are errors in a transaction).

Values:

enumerator READY
enumerator GO_ON
enumerator INITIAL
enumerator EXECUTING
enumerator SUCCESS
enumerator CANCELLED
enumerator UNKNOWN
enumerator INVALID_ARGUMENT
enumerator DEADLINE_EXCEEDED
enumerator NOT_FOUND
enumerator ALREADY_EXISTS
enumerator PERMISSION_DENIED
enumerator RESOURCE_EXHAUSTED
enumerator FAILED_PRECONDITION
enumerator ABORTED
enumerator OUT_OF_RANGE
enumerator UNIMPLEMENTED
enumerator INTERNAL
enumerator CONNECTION_ERROR
enumerator DATA_LOSS
enumerator AUTHENTICATION_ERROR
enumerator GENERIC_RPC_ERROR
enumerator GENERIC_ERROR
enumerator GENERIC_TRANSACTION_ERROR
enumerator CONFIGURATION_ERROR
enumerator CONNECTION_CONFIGURATION_ERROR
enumerator TRANSACTION_STATUS_ERROR
enumerator TRANSACTION_TYPE_ERROR
enumerator UNSUPPORTED_FEATURE
enumerator ORIGINAL_ENTITY_MISSING_ID
enumerator ENTITY_CANNOT_HAVE_A_DATA_TYPE
enumerator ENTITY_CANNOT_HAVE_A_VALUE
enumerator NOT_A_FILE_ENTITY
enumerator PATH_IS_A_DIRECTORY
enumerator FILE_DOES_NOT_EXIST_LOCALLY
enumerator FILE_UPLOAD_ERROR
enumerator FILE_DOWNLOAD_ERROR
enumerator ENUM_MAPPING_ERROR
enumerator SPOILED
enumerator OTHER_CLIENT_ERROR

Functions

auto get_status_description(int code) -> const std::string&