$search

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 26 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 32 of file Except.hh.


Member Function Documentation

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

Definition at line 34 of file Except.hh.

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

Definition at line 33 of file Except.hh.


Member Data Documentation

string P::Except::_what [private]

Definition at line 28 of file Except.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Fri Mar 1 16:57:58 2013