libpressio 0.93.0
|
#include <errorable.h>
Public Member Functions | |
const char * | error_msg () const |
int | error_code () const |
Protected Member Functions | |
int | set_error (int code, std::string const &msg) |
void | clear_error () |
class that indicates that a pressio object handles errors
|
protected |
clears the error code and resets the error message
int pressio_errorable::error_code | ( | ) | const |
get the error code for the last error
const char * pressio_errorable::error_msg | ( | ) | const |
get the error message for the last error
|
protected |
Should be used by implementing plug-ins to provide error codes
[in] | code | a implementation specific code for the last error |
[in] | msg | a implementation specific message for the last error |