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 const char* Tagcoll::ContextException::type (  )  const throw () [inline, virtual]

Get a string tag identifying the exception type.

Reimplemented from Tagcoll::Exception.

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

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 std::string Tagcoll::ContextException::context (  )  const throw () [inline, virtual]


Member Data Documentation

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


The documentation for this class was generated from the following file:
Generated on Sat Jan 17 03:48:39 2009 for libtagcoll by  doxygen 1.5.1