OSB_LIB::DefException Class Reference

Inheritance diagram for OSB_LIB::DefException:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::DefException:

Collaboration graph
[legend]
List of all members.

Detailed Description

Default exception used in the OSB library.

This is the default exception thrown by the OSB library if no specialized exception is defined.

Definition at line 268 of file osberror.h.

Public Member Functions


Constructor & Destructor Documentation

OSB_LIB::DefException::DefException ( ErrorNo  e  )  [inline]

Constructor with error number.

Definition at line 527 of file osberror.h.

OSB_LIB::DefException::DefException ( ErrorNo  e,
const Args args 
) [inline]

Constructor with error number and arguments.

Definition at line 533 of file osberror.h.


Member Function Documentation

template<typename T>
DefException & OSB_LIB::DefException::operator<< ( const T &  t  )  [inline]

Add an argument to the exception.

Note:
The member is needed to make the following possible:
          void foo(const Contract& co) {
              ...
              throw DefException(27) << co.oid();
              ...
          }

Reimplemented from OSB_LIB::BaseError.

Definition at line 542 of file osberror.h.

References OSB_LIB::operator<<().


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:12:00 2006 for OSB Library by  doxygen 1.4.7