00001 #ifndef PKCS11_EXCEPTION_H 00002 #define PKCS11_EXCEPTION_H 00003 00004 #include "common.h" 00009 class Pkcs11Exception 00010 { 00011 public: 00017 Pkcs11Exception(const char* message,CK_RV errorCode); 00021 ~Pkcs11Exception(void); 00025 CK_RV getErrorCode(void); 00029 const char* toString(); 00030 00031 private: 00035 const char* message; 00039 CK_RV errorCode; 00043 static FILE* logFile; 00044 00045 }; 00046 00047 #endif 00048