CppCMS
|
The lightweight object that carries a error code information and its category. More...
#include <booster/booster/system_error.h>
Public Member Functions | |
error_code () | |
error_code (int val, error_category const &cat) | |
int | value () const |
const error_category & | category () const |
std::string | message () const |
operator bool () const | |
The lightweight object that carries a error code information and its category.
It is a pair: an integer code and a reference to the error_category object.
|
inline |
Create an empty error object - no error
|
inline |
Create a error object withing specific category cat with code val
|
inline |
Get the reference to the specific category
Referenced by booster::system::operator==().
|
inline |
Convert the error code to the human readable string
References booster::system::error_category::message(), and booster::system::error_category::name().
|
inline |
|
inline |
Get the numeric code of the error
Referenced by operator bool(), and booster::system::operator==().