Class of statuses.
More...
#include <msgpack_rpc/common/status.h>
|
|
| Status () noexcept |
| | Constructor. (Set to success.).
|
|
| Status (const Status &) noexcept |
| | Copy constructor.
|
|
| Status (Status &&) noexcept |
| | Move constructor.
|
| | Status (StatusCode code, std::string_view message) |
| | Constructor.
|
|
| ~Status () noexcept |
| | Destructor.
|
| StatusCode | code () const noexcept |
| | Get the status code.
|
| std::string_view | message () const noexcept |
| | Get the error message.
|
| Status & | operator= (const Status &) noexcept |
| | Copy assignment operator.
|
| Status & | operator= (Status &&) noexcept |
| | Move assignment operator.
|
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: