ContextException Class Reference

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

#include <Exception.h>

Inheritance diagram for ContextException:

Exception ConsistencyCheckException InterruptedException SystemException OutOfRangeException WaitInterruptedException FileException ValOutOfRangeException< C > 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

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"

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


Member Function Documentation

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

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

Get a string describing what happened that threw the exception.

Reimplemented from Exception.

Reimplemented in OutOfRangeException, ValOutOfRangeException< C >, and SystemException.

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

Get a string tag identifying the exception type.

Reimplemented from Exception.

Reimplemented in InterruptedException, WaitInterruptedException, ConsistencyCheckException, OutOfRangeException, ValOutOfRangeException< C >, SystemException, and FileException.


Member Data Documentation

std::string ContextException::_context [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Nov 30 18:18:30 2005 for libbuffy by  doxygen 1.4.5