libcryptosec
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
HmacException Class Reference

#include <HmacException.h>

Inheritance diagram for HmacException:
LibCryptoSecException

Public Types

enum  ErrorCode {
  UNKNOWN, CTX_INIT, CTX_UPDATE, CTX_FINISH,
  INVALID_ALGORITHM
}
 

Public Member Functions

 HmacException (std::string where)
 
 HmacException (HmacException::ErrorCode errorCode, std::string where)
 
 ~HmacException () throw ()
 
virtual std::string getMessage () const
 
virtual std::string toString () const
 
virtual HmacException::ErrorCode getErrorCode ()
 
- Public Member Functions inherited from LibCryptoSecException
virtual ~LibCryptoSecException () throw ()
 
virtual const char * what () const throw ()
 
virtual const std::string getDetails () const throw ()
 

Static Public Member Functions

static std::string errorCode2Message (HmacException::ErrorCode errorCode)
 

Protected Attributes

HmacException::ErrorCode errorCode
 
- Protected Attributes inherited from LibCryptoSecException
std::string where
 
std::string details
 

Member Enumeration Documentation

◆ ErrorCode

Enumerator
UNKNOWN 
CTX_INIT 
CTX_UPDATE 
CTX_FINISH 
INVALID_ALGORITHM 

Constructor & Destructor Documentation

◆ HmacException() [1/2]

HmacException::HmacException ( std::string  where)
inline

◆ HmacException() [2/2]

HmacException::HmacException ( HmacException::ErrorCode  errorCode,
std::string  where 
)
inline

◆ ~HmacException()

HmacException::~HmacException ( )
throw (
)
inline

Member Function Documentation

◆ errorCode2Message()

static std::string HmacException::errorCode2Message ( HmacException::ErrorCode  errorCode)
inlinestatic

◆ getErrorCode()

virtual HmacException::ErrorCode HmacException::getErrorCode ( )
inlinevirtual

◆ getMessage()

virtual std::string HmacException::getMessage ( ) const
inlinevirtual

Implements LibCryptoSecException.

◆ toString()

virtual std::string HmacException::toString ( ) const
inlinevirtual

Implements LibCryptoSecException.

Member Data Documentation

◆ errorCode

HmacException::ErrorCode HmacException::errorCode
protected

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