78 static constexpr auto empty = std::string_view(
"");
81 return data_->message;
std::string_view message() const noexcept
Get the error message.
Status() noexcept
Constructor. (Set to success.)
std::shared_ptr< Data > data_
Internal data.
StatusCode code() const noexcept
Get the status code.
Namespace of common classes and functions.
StatusCode
Enumeration of status codes.
Namespace of cpp-msgpack-rpc library.
Definition of Status class.
Definition of StatusCode enumeration.
static std::shared_ptr< Data > create(StatusCode code, std::string_view message)
Create data.
StatusCode code
Status code.
std::string message
Error message.