Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Tagcoll::ContextException Class Reference

Exception with a description of the throwing context. More...

#include <Exception.h>

Inheritance diagram for Tagcoll::ContextException:

Inheritance graph
[legend]
Collaboration diagram for Tagcoll::ContextException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ContextException (const std::string &context) throw ()
 Construct the ContextException, providing the context description in printf syntax.
 ~ContextException () throw ()
virtual const char * type () const throw ()
 Get a string tag identifying the exception type.
virtual std::string desc () const throw ()
 Get a string describing what happened that threw the exception.
virtual std::string context () const throw ()

Protected Attributes

std::string _context

Detailed Description

Exception with a description of the throwing context.


Constructor & Destructor Documentation

Tagcoll::ContextException::ContextException const std::string &  context  )  throw () [inline]
 

Construct the ContextException, providing the context description in printf syntax.

The context should be phrased like "Bad thing A happened when doing B"

Tagcoll::ContextException::~ContextException  )  throw () [inline]
 


Member Function Documentation

virtual std::string Tagcoll::ContextException::context  )  const throw () [inline, virtual]
 

virtual std::string Tagcoll::ContextException::desc  )  const throw () [inline, virtual]
 

Get a string describing what happened that threw the exception.

Reimplemented from Tagcoll::Exception.

Reimplemented in Tagcoll::OutOfRangeException, Tagcoll::ValOutOfRangeException< C >, Tagcoll::SystemException, and Tagcoll::ParserException.

virtual const char* Tagcoll::ContextException::type  )  const throw () [inline, virtual]
 

Get a string tag identifying the exception type.

Reimplemented from Tagcoll::Exception.

Reimplemented in Tagcoll::InterruptedException, Tagcoll::WaitInterruptedException, Tagcoll::ConsistencyCheckException, Tagcoll::OutOfRangeException, Tagcoll::ValOutOfRangeException< C >, Tagcoll::SystemException, Tagcoll::FileException, Tagcoll::ParserException, and Tagcoll::ParserInputException.


Member Data Documentation

std::string Tagcoll::ContextException::_context [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Sep 9 22:19:24 2005 for libtagcoll by  doxygen 1.4.4