Public Types | Public Member Functions | Static Public Member Functions

base_crypto::CryptoException Class Reference

A cryptographic exception. More...

#include <libppbase/base_crypto/CryptoException.h>

Inheritance diagram for base_crypto::CryptoException:
base::Exception

List of all members.

Public Types

enum  err { errOpenSSL = 1, errRegClient }
 

crypto error codes

More...

Public Member Functions

 CryptoException (err errcode, const char *fmt=NULL,...)
 Constructor.
long getErrno () const
 Gets the OpenSSL error number.
virtual base::String toString () const
 Gets a string representation of this exception.

Static Public Member Functions

static void finit ()
 Unloads the OpenSSL error strings.
static void init ()
 Loads the OpenSSL error strings.

Detailed Description

A cryptographic exception.

Author:
Christoph Schwarz
Version:
$Id: CryptoException.h 21 2010-09-05 04:18:17Z cschwarz1 $

Member Enumeration Documentation

crypto error codes

Enumerator:
errOpenSSL 

OpenSSL error.

errRegClient 

registration client error


Constructor & Destructor Documentation

base_crypto::CryptoException::CryptoException ( err  errcode,
const char *  fmt = NULL,
  ... 
)

Constructor.

Parameters:
errcode error code
fmt printf-like format string to take an additional error message
... additional arguments for the format string

Member Function Documentation

long base_crypto::CryptoException::getErrno (  )  const

Gets the OpenSSL error number.

Returns:
the OpenSSL error number
virtual base::String base_crypto::CryptoException::toString (  )  const [virtual]

Gets a string representation of this exception.

Returns:
string representation (for logging purposes)

Reimplemented from base::Exception.


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