LCI v2.0.0-dev
For Asynchronous Multithreaded Communication
|
Wrapper class for error code. More...
#include <lci.hpp>
Public Member Functions | |
error_t () | |
error_t (errorcode_t errorcode_) | |
Construct an error_t object with a specific error code. | |
void | reset_retry () |
Reset the error code to retry. | |
bool | is_done () const |
Check if the error code is in the done category. | |
bool | is_posted () const |
Check if the error code is in the posted category. | |
bool | is_retry () const |
Check if the error code is in the retry category. | |
const char * | get_str () const |
Get the string representation of the error code. | |
Public Attributes | |
errorcode_t | errorcode |
Wrapper class for error code.
This class wraps the error code and provides utility functions to check the error code.
|
inline |
|
inline |
Construct an error_t object with a specific error code.
errorcode_ | The error code to be wrapped. |
|
inline |
Get the string representation of the error code.
|
inline |
Check if the error code is in the done category.
|
inline |
Check if the error code is in the posted category.
|
inline |
Check if the error code is in the retry category.
|
inline |
Reset the error code to retry.
errorcode_t lci::error_t::errorcode |