Public Member Functions | Private Attributes
P::Except Class Reference

#include <Except.hh>

List of all members.

Public Member Functions

 Except (const char *file, const char *function, int line, const char *format,...) throw ()
void Set (const string &s)
virtual const char * what () const throw ()
virtual ~Except () throw ()

Private Attributes

string _what

Detailed Description

An informative exception class. Example: Except(__FILE__, __FUNCTION__, __LINE__, "There were %d %s in the tree.", 42, "elephants"); output: "DumbFile.cc:StupidFunction:28: There were 42 elephants in the tree." Note: You can use the __HERE__ macro to get shorter statements: Except(__HERE__, "There were %d %s in the tree.", 42, "elephants");

Definition at line 25 of file Except.hh.


Constructor & Destructor Documentation

P::Except::Except ( const char *  file,
const char *  function,
int  line,
const char *  format,
  ... 
) throw ()

Except constructor.

Parameters:
file(in) __FILE__ macro
function(in) __FUNCTION__ macro
line(in) __LINE__ macro
format(in) printf-style format string

Definition at line 19 of file Except.cc.

virtual P::Except::~Except ( ) throw () [inline, virtual]

Definition at line 31 of file Except.hh.


Member Function Documentation

void P::Except::Set ( const string &  s) [inline]

Definition at line 33 of file Except.hh.

virtual const char* P::Except::what ( ) const throw () [inline, virtual]

Definition at line 32 of file Except.hh.


Member Data Documentation

string P::Except::_what [private]

Definition at line 27 of file Except.hh.


The documentation for this class was generated from the following files:


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12