contract_violation Class Reference
[Error Library]

#include <stlsoft/error/contract_violation.hpp>

Inheritance diagram for contract_violation:

unrecoverable

List of all members.


Detailed Description

Thrown when a contract has been violated.

Exceptions deriving from this class may be caught, but they result in process termination at the end of the catch clause, or if they're not caught.

Types

typedef unrecoverable parent_class_type
 The parent type.
typedef contract_violation class_type
 The type of the current instantiation.

Public Member Functions

Construction
 contract_violation ()
 Default constructor.
 contract_violation (void(*pfnHandler)())
 Creates an instance which will call the given function when termination is effected.
 contract_violation (char const *error, void(*pfnHandler)()=NULL)
 contract_violation (string_type const &error, void(*pfnHandler)()=NULL)
 contract_violation (class_type const &rhs)
 Copy constructor.
virtual ~contract_violation () throw ()
Accessors
virtual char const * what () const throw ()
 Returns a human-readable string describing the exception condition.


Member Typedef Documentation

The parent type.

Reimplemented from unrecoverable.

The type of the current instantiation.

Reimplemented from unrecoverable.


Constructor & Destructor Documentation

contract_violation (  )  [inline]

Default constructor.

contract_violation ( void(*)()  pfnHandler  )  [inline, explicit]

Creates an instance which will call the given function when termination is effected.

Note:
Only when the last copy of this instance is destroyed will the given function by executed

contract_violation ( class_type const &  rhs  )  [inline]

Copy constructor.

Note:
Only when the last copy is destroyed will the termination be effected


Member Function Documentation

virtual char const* what (  )  const throw () [inline, virtual]

Returns a human-readable string describing the exception condition.

Reimplemented from unrecoverable.


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

Generated on Thu Jun 10 08:58:45 2010 for STLSoft by  doxygen 1.5.6