Class of statuses.
More...
#include <msgpack_rpc/common/status.h>
Class of statuses.
Definition at line 34 of file status.h.
◆ Status()
msgpack_rpc::common::Status::Status |
( |
StatusCode | code, |
|
|
std::string_view | message ) |
Constructor.
- Parameters
-
[in] | code | Status code. |
[in] | message | Error message. |
Definition at line 56 of file status.cpp.
◆ code()
StatusCode msgpack_rpc::common::Status::code |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ message()
std::string_view msgpack_rpc::common::Status::message |
( |
| ) |
const |
|
nodiscardnoexcept |
Get the error message.
- Returns
- Error message.
- Note
- This returns empty message when this status is not an error.
Definition at line 76 of file status.cpp.
◆ operator=() [1/2]
Status & msgpack_rpc::common::Status::operator= |
( |
const Status & | | ) |
|
|
defaultnoexcept |
Copy assignment operator.
- Returns
- This.
◆ operator=() [2/2]
Status & msgpack_rpc::common::Status::operator= |
( |
Status && | | ) |
|
|
defaultnoexcept |
Move assignment operator.
- Returns
- This.
◆ data_
std::shared_ptr<Data> msgpack_rpc::common::Status::data_ |
|
private |
Internal data.
Definition at line 99 of file status.h.
The documentation for this class was generated from the following files: