Object PKCS#11 C++ Wrapper
Public Member Functions | Protected Attributes | List of all members
CryptokiException Class Reference

General Cryptoki API Exception
More...

#include <CryptokiException.h>

Inheritance diagram for CryptokiException:

Public Member Functions

 CryptokiException (CK_RV erc=CKR_GENERAL_ERROR)
 
 CryptokiException (const char *where, CK_RV erc=CKR_GENERAL_ERROR)
 
virtual ~CryptokiException () throw ()
 
virtual const char * what () const throw ()
 
virtual const char * where () const throw ()
 
virtual CK_RV getErrorCode ()
 

Protected Attributes

CK_RV _erc
 
const char * _where
 

Detailed Description

General Cryptoki API Exception

This is a general Exception for the API class, it contains the pkcs11 base error codes and returns a understandable string rather than a number.

See also
pkcs11.h

Constructor & Destructor Documentation

CryptokiException::CryptokiException ( CK_RV  erc = CKR_GENERAL_ERROR)
inline

Default Constructor.

Parameters
ercPKCS#11 Error code.
CryptokiException::CryptokiException ( const char *  where,
CK_RV  erc = CKR_GENERAL_ERROR 
)
inline

Constructor with "where" message.

Parameters
whereString with place where exception occurred.
ercPKCS#11 Error code.
virtual CryptokiException::~CryptokiException ( )
throw (
)
inlinevirtual

Default destructor.

Member Function Documentation

virtual CK_RV CryptokiException::getErrorCode ( )
inlinevirtual

Returns the PKCS#11 error code.

Returns
CK_RV
virtual const char* CryptokiException::what ( ) const
throw (
)
inlinevirtual

Returns a string with the name of the PKCS#11error code.

virtual const char* CryptokiException::where ( ) const
throw (
)
inlinevirtual

Returns a string with the place where the exception occurred.

Member Data Documentation

CK_RV CryptokiException::_erc
protected
const char* CryptokiException::_where
protected

The documentation for this class was generated from the following file: