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

#include <SymmetricCipherException.h>

Inheritance diagram for SymmetricCipherException:
LibCryptoSecException

Public Types

enum  ErrorCode {
  UNKNOWN, INVALID_CIPHER, CTX_INIT, CTX_UPDATE,
  CTX_FINISH, NO_INPUT_DATA
}
 

Public Member Functions

 SymmetricCipherException (std::string where)
 
 SymmetricCipherException (SymmetricCipherException::ErrorCode errorCode, std::string where)
 
virtual ~SymmetricCipherException () throw ()
 
virtual std::string getMessage () const
 
virtual std::string toString () const
 
virtual SymmetricCipherException::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 (SymmetricCipherException::ErrorCode errorCode)
 

Protected Attributes

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

Member Enumeration Documentation

◆ ErrorCode

Enumerator
UNKNOWN 
INVALID_CIPHER 
CTX_INIT 
CTX_UPDATE 
CTX_FINISH 
NO_INPUT_DATA 

Constructor & Destructor Documentation

◆ SymmetricCipherException() [1/2]

SymmetricCipherException::SymmetricCipherException ( std::string  where)
inline

◆ SymmetricCipherException() [2/2]

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

◆ ~SymmetricCipherException()

virtual SymmetricCipherException::~SymmetricCipherException ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ errorCode2Message()

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

◆ getErrorCode()

virtual SymmetricCipherException::ErrorCode SymmetricCipherException::getErrorCode ( )
inlinevirtual

◆ getMessage()

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

Implements LibCryptoSecException.

◆ toString()

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

Implements LibCryptoSecException.

Member Data Documentation

◆ errorCode

SymmetricCipherException::ErrorCode SymmetricCipherException::errorCode
protected

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