LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <myexception.hpp>
Public Types | |
enum | ErrorType { DEFAULT , EXECUTION_ERROR , MEMORY_FAILURE , WRONG_LENGTH , INVALID_CLA_BYTE , COMMAND_INCOMPATIBLE , SECURITY_STATUS , AUTHENTICATION_FAILURE , REFERENCE_KEY_UNUSABLE , COMMAND_NOT_ALLOWED , KEY_NUMBER_INVALID , FUNCTION_NOT_SUPPORTED , NOT_FOUND , WRONG_P1_P2 , WRONG_LE , WRONG_INSTRUCTION , WRONG_CLASS , AID_NOT_FOUND , UNKOWN_ERROR } |
Public Member Functions | |
CardException (const std::string &message) | |
CardException (const std::string &message, ErrorType error) | |
enum ErrorType | error_code () const |
![]() | |
LibLogicalAccessException (const char *message) | |
LibLogicalAccessException (const std::string &message) | |
virtual | ~LibLogicalAccessException () NOEXCEPT |
const char * | what () const NOEXCEPT override |
Protected Attributes | |
enum ErrorType | error_type_ |
![]() | |
std::string | msg_ |
Exception class to notify of error on card operation.
If a command fails and the error is known, a CardException corresponding to the error will be thrown by the library.
This is a general enumeration to describe possible error. This is usefull because not all readers / card combination fail with the same error code for the same error.
|
inlineexplicit |
|
inline |
|
inline |
|
protected |