1 #ifndef SMARTCARDMODULEEXCEPTION_H_ 2 #define SMARTCARDMODULEEXCEPTION_H_ 57 ret =
"SmartcardModuleException. Called by: " + this->
where +
".";
65 ret +=
" More details:\n" + this->
details +
".";
79 ret =
"Unknown error";
82 ret =
"Enumerating certificates";
85 ret =
"Enumerating private keys";
88 ret =
"Decrypting data";
91 ret =
"Smartcard not available";
94 ret =
"Smartcard reader not available";
100 ret =
"Invalid PKCS11 module";
106 ret =
"ID not found";
Definition: SmartcardModuleException.h:14
SmartcardModuleException::ErrorCode errorCode
Definition: SmartcardModuleException.h:115
Definition: SmartcardModuleException.h:12
SmartcardModuleException(SmartcardModuleException::ErrorCode errorCode, std::string where, bool opensslDetails)
Definition: SmartcardModuleException.h:34
ErrorCode
Definition: SmartcardModuleException.h:9
virtual SmartcardModuleException::ErrorCode getErrorCode()
Definition: SmartcardModuleException.h:69
Definition: SmartcardModuleException.h:17
virtual std::string getMessage() const
Definition: SmartcardModuleException.h:48
Definition: SmartcardModuleException.h:13
Definition: SmartcardModuleException.h:11
Definition: SmartcardModuleException.h:16
virtual std::string toString() const
Definition: SmartcardModuleException.h:52
Definition: LibCryptoSecException.h:8
std::string where
Definition: LibCryptoSecException.h:23
std::string details
Definition: LibCryptoSecException.h:24
Definition: SmartcardModuleException.h:6
static std::string errorCode2Message(SmartcardModuleException::ErrorCode errorCode)
Definition: SmartcardModuleException.h:73
Definition: SmartcardModuleException.h:15
virtual ~SmartcardModuleException()
Definition: SmartcardModuleException.h:47
static std::string getErrors()
Definition: OpenSSLErrorHandler.cpp:56
SmartcardModuleException(std::string where)
Definition: SmartcardModuleException.h:22
SmartcardModuleException(SmartcardModuleException::ErrorCode errorCode, std::string where)
Definition: SmartcardModuleException.h:28
Definition: SmartcardModuleException.h:18
Definition: SmartcardModuleException.h:19
Definition: SmartcardModuleException.h:20