10 #define RAD_ERRORS_HPP
12 #include <system_error>
29 std::string
message(
int errValue)
const override final {
30 switch (static_cast<rad::ErrorCodes>(errValue)) {
32 return "Reply timed out.";
34 return "Operation was cancelled.";
36 return "Error parsing message payload.";
39 return "Unknown error";
60 struct is_error_code_enum<rad::
ErrorCodes> : std::true_type {};
Definition: Errors.hpp:23
const ErrorCategory & GetErrorCategory()
Definition: Errors.hpp:44
std::string message(int errValue) const overridefinal
Definition: Errors.hpp:29
const char * name() const noexceptoverridefinal
Definition: Errors.hpp:25
ErrorCodes
Definition: Errors.hpp:16
std::error_code make_error_code(rad::ErrorCodes e)
Definition: Errors.hpp:50
optional int32 error_code
Definition: topics.proto:14
std::string const
Definition: Test{{cookiecutter.device_name}}.cpp:209