#include <Exception.h>
Inheritance diagram for Tagcoll::ContextException:
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 |
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] |
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] |
std::string Tagcoll::ContextException::_context [protected] |