Error code class.
More...
#include <ErrorCode.h>
|
| ErrorCode (int32_t error, std::string msg) noexcept |
| Constructor.
|
|
int32_t | value () const noexcept |
| Get error code.
|
|
const std::string & | message () const noexcept |
| Get error description.
|
|
| operator bool () const noexcept |
|
◆ ErrorCode()
sese::ErrorCode::ErrorCode |
( |
int32_t | error, |
|
|
std::string | msg ) |
|
noexcept |
Constructor.
- Parameters
-
error | Error code |
msg | Error description |
◆ message()
const std::string & sese::ErrorCode::message |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Get error description.
- Returns
- Error description
References msg.
◆ operator bool()
sese::ErrorCode::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
◆ value()
int32_t sese::ErrorCode::value |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ error
int32_t sese::ErrorCode::error |
|
private |
◆ msg
std::string sese::ErrorCode::msg |
|
private |
The documentation for this class was generated from the following files: