Pkcs11Exception Class Reference

Collaboration diagram for Pkcs11Exception:

Collaboration graph
[legend]
List of all members.

Detailed Description

Although it's common in the C++ world to throw Exception, because Cryptoki is C based it uses return values for errors. This Class attempts to bridge those


Public Member Functions

 Pkcs11Exception (const char *message, CK_RV errorCode)
 ~Pkcs11Exception (void)
CK_RV getErrorCode (void)
const char * toString ()


Constructor & Destructor Documentation

Pkcs11Exception::Pkcs11Exception const char *  message,
CK_RV  errorCode
 

constructs this exception with the message and an error code that can be retrieved. It will attempt to write the message and code to the file pointed to by the environment variable 'LOGFILE'. If that variable doesn't exist or the file can't be open, it goes to stderr

Pkcs11Exception::~Pkcs11Exception void   ) 
 

Does nothing


Member Function Documentation

CK_RV Pkcs11Exception::getErrorCode void   ) 
 

Returns:
the error code this object was constructed with

const char * Pkcs11Exception::toString  ) 
 

Returns:
the error message


Generated on Fri Jan 12 15:48:45 2007 for NIST_PKCS11 by doxygen 1.3.1 using KingsTools