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

#include <Pkcs7Exception.h>

Inheritance diagram for Pkcs7Exception:
LibCryptoSecException

Public Types

enum  ErrorCode {
  UNKNOWN, INVALID_PKCS7, INVALID_TYPE, DECRYPTING,
  INTERNAL_ERROR, INVALID_SYMMETRIC_CIPHER, INVALID_CERTIFICATE, ADDING_SIGNER,
  ADDING_CERTIFICATE
}
 

Public Member Functions

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

Protected Attributes

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

Member Enumeration Documentation

◆ ErrorCode

Enumerator
UNKNOWN 
INVALID_PKCS7 
INVALID_TYPE 
DECRYPTING 
INTERNAL_ERROR 
INVALID_SYMMETRIC_CIPHER 
INVALID_CERTIFICATE 
ADDING_SIGNER 
ADDING_CERTIFICATE 

Constructor & Destructor Documentation

◆ Pkcs7Exception() [1/3]

Pkcs7Exception::Pkcs7Exception ( std::string  where)
inline

◆ Pkcs7Exception() [2/3]

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

◆ Pkcs7Exception() [3/3]

Pkcs7Exception::Pkcs7Exception ( Pkcs7Exception::ErrorCode  errorCode,
std::string  where,
bool  opensslDetails 
)
inline

◆ ~Pkcs7Exception()

virtual Pkcs7Exception::~Pkcs7Exception ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ errorCode2Message()

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

◆ getErrorCode()

virtual Pkcs7Exception::ErrorCode Pkcs7Exception::getErrorCode ( )
inlinevirtual

◆ getMessage()

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

Implements LibCryptoSecException.

◆ toString()

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

Implements LibCryptoSecException.

Member Data Documentation

◆ errorCode

Pkcs7Exception::ErrorCode Pkcs7Exception::errorCode
protected

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