Digital Authentication Framework 6.0.1.33
|
Simple implementation of DAError. More...
#include <basic_error.h>
Public Member Functions | |
virtual int | getCode () |
get error code | |
bool | setCode (int e) |
Set error code in error code. | |
virtual void | clear () |
reset the current error state. | |
virtual void | getAsStringUTF8 (std::string &out) |
get error as string message. | |
Protected Attributes | |
int | m_err |
Error code; see DAError for values. |
Simple implementation of DAError.
Simple DAF implementations can use this as-is; more complex implementations may wish to extend this, e.g. to record error codes returned by hardware devices.
virtual void BasicError::getAsStringUTF8 | ( | std::string & | errmsg | ) | [inline, virtual] |
get error as string message.
Note there is deliberately no success/failure indication for this method.
Implements DAError.
virtual int BasicError::getCode | ( | ) | [inline, virtual] |
get error code
Implements DAError.
bool BasicError::setCode | ( | int | e | ) | [inline] |
Set error code in error code.
e | Error code (see DAError for values). |