Digital Authentication Framework 6.0.1.33
|
Interface for error reporting. More...
#include <DigitalAuthenticationFramework.h>
Public Types | |
enum | { SUCCESS = 0, NO_MEMORY = 1, NOT_PROVISIONED = 2, DEVICE_NOT_FOUND = 3, NO_MORE_SESSIONS = 4, DEVICE_DISCONNECTED = 5, DEVICE_PROTOCOL_ERR = 6, BAD_AUTH_TOKEN = 7, KEY_NOT_FOUND = 8, ATTRIB_NOT_FOUND = 9, MECH_NOT_FOUND = 10, VERIFY_FAILED = 11, NOT_IMPLEMENTED = 12, BAD_PARAMETERS = 13, OS_ERROR = 14, UNSUPPORTED_HASH = 15 } |
Public Member Functions | |
virtual | ~DAError () |
virtual destructor | |
virtual int | getCode ()=0 |
get error code | |
bool | isError () |
test if error has occurred | |
virtual void | clear ()=0 |
reset the current error state. | |
virtual void | getAsStringUTF8 (std::string &errmsg)=0 |
get error as string message. |
Interface for error reporting.
anonymous enum |
virtual DAError::~DAError | ( | ) | [inline, virtual] |
virtual destructor
virtual void DAError::getAsStringUTF8 | ( | std::string & | errmsg | ) | [pure virtual] |
get error as string message.
Note there is deliberately no success/failure indication for this method.
Implemented in BasicError.
virtual int DAError::getCode | ( | ) | [pure virtual] |
get error code
Implemented in BasicError.
bool DAError::isError | ( | ) | [inline] |
test if error has occurred