Go to the documentation of this file.
10 #ifndef RAD_ERRORS_HPP
11 #define RAD_ERRORS_HPP
13 #include <system_error>
26 const char*
name() const noexcept override final {
return "RAD Error"; }
28 std::string
message(
int err_value)
const override final {
30 case rad::ErrorCodes::REPLY_TIMEOUT:
31 return "Reply timed out.";
32 case rad::ErrorCodes::CANCELLED:
33 return "Operation was cancelled.";
34 case rad::ErrorCodes::DESERIALIZATION_ERR:
35 return "Error parsing message payload.";
38 return "Unknown error";
66 #endif // RAD_ERRORS_HPP
std::error_code make_error_code(rad::ErrorCodes e)
Definition: errors.hpp:52
Definition: errors.hpp:24
Definition: actionCallback.hpp:21
const ErrorCategory & GetErrorCategory()
Definition: errors.hpp:43
ErrorCodes
Definition: errors.hpp:17
std::string message(int err_value) const override final
Definition: errors.hpp:28
Definition: errors.hpp:58
const char * name() const noexcept override final
Definition: errors.hpp:26