30 return "INVALID_ARGUMENT";
32 return "INVALID_MESSAGE";
36 return "PRECONDITION_NOT_MET";
38 return "OPERATION_ABORTED";
40 return "OPERATION_FAILURE";
42 return "HOST_UNRESOLVED";
44 return "CONNECTION_FAILURE";
48 return "SERVER_ERROR";
50 return "UNEXPECTED_ERROR";
52 return "INVALID_STATUS_CODE";
Namespace of common classes and functions.
std::string_view format_status_code(StatusCode code) noexcept
Format a status code.
StatusCode
Enumeration of status codes.
@ SERVER_ERROR
Error in servers.
@ TYPE_ERROR
Invalid types in a message.
@ INVALID_MESSAGE
Failure in parsing a message.
@ HOST_UNRESOLVED
Failure in resolving a host.
@ PRECONDITION_NOT_MET
Pre-condition for a process is not met.
@ OPERATION_ABORTED
Operation was aborted by user.
@ CONNECTION_FAILURE
Failure in connecting to an endpoint.
@ OPERATION_FAILURE
Operation failed. (Mainly for OS calls.)
@ UNEXPECTED_ERROR
Unexpected errors. (Maybe a bug.)
@ INVALID_ARGUMENT
Invalid arguments in functions.
Namespace of cpp-msgpack-rpc library.
Definition of StatusCode enumeration.