Exception Class Reference

#include <cryptlib.h>

Inheritance diagram for Exception:

AlgorithmParametersBase::ParameterNotUsed CannotFlush DefaultDecryptor::Err EqualityComparisonFilter::MismatchDetected FileSink::Err FileStore::Err HashVerificationFilter::HashVerificationFailed HuffmanDecoder::Err Inflator::Err Integer::DivideByZero Integer::OpenPGPDecodeErr Integer::RandomNumberNotFound InvalidArgument InvalidDataFormat NotImplemented ObjectFactoryRegistry< AbstractClass, instance >::FactoryNotFound OS_Error OS_RNG_Err PK_Encryptor::InvalidPlaintextLength PK_SignatureScheme::InvalidKeyLength PolynomialMod2::DivideByZero PolynomialOver< T >::DivideByZero RingOfPolynomialsOver< T >::InterpolationFailed SelfTestFailure SignatureVerificationFilter::SignatureVerificationFailed TestFailure WaitObjectContainer::Err List of all members.

Detailed Description

base class for all exceptions thrown by Crypto++

Definition at line 106 of file cryptlib.h.

Public Types

enum  ErrorType {
  NOT_IMPLEMENTED, INVALID_ARGUMENT, CANNOT_FLUSH, DATA_INTEGRITY_CHECK_FAILED,
  INVALID_DATA_FORMAT, IO_ERROR, OTHER_ERROR
}
 error types More...

Public Member Functions

 Exception (ErrorType errorType, const std::string &s)
virtual ~Exception () throw ()
const char * what () const throw ()
const std::string & GetWhat () const
void SetWhat (const std::string &s)
ErrorType GetErrorType () const
void SetErrorType (ErrorType errorType)


Member Enumeration Documentation

enum Exception::ErrorType

error types

Enumerator:
NOT_IMPLEMENTED  a method is not implemented
INVALID_ARGUMENT  invalid function argument
CANNOT_FLUSH  BufferedTransformation received a Flush(true) signal but can't flush buffers.
DATA_INTEGRITY_CHECK_FAILED  data integerity check (such as CRC or MAC) failed
INVALID_DATA_FORMAT  received input data that doesn't conform to expected format
IO_ERROR  error reading from input device or writing to output device
OTHER_ERROR  some error not belong to any of the above categories

Definition at line 110 of file cryptlib.h.


The documentation for this class was generated from the following file:
Generated on Sat Dec 23 02:07:22 2006 for Crypto++ by  doxygen 1.5.1-p1