G::Exception Class Reference

A general-purpose exception class derived from std::exception and containing a std::string. More...

#include <gexception.h>

List of all members.

Public Member Functions

 Exception ()
 Default constructor.
 Exception (const char *what)
 Constructor.
 Exception (const std::string &what)
 Constructor.
 Exception (const char *what, const std::string &more)
 Constructor.
 Exception (const std::string &what, const std::string &more)
 Constructor.
 Exception (const std::string &what, const std::string &more1, const std::string &more2)
 Constructor.
virtual ~Exception () throw ()
 Destructor.
virtual const char * what () const throw ()
 Override from std::exception.
void prepend (const char *context)
 Prepends context to the what string.
void append (const char *more)
 Appends 'more' to the what string.
void append (const std::string &more)
 Appends 'more' to the what string.

Protected Attributes

std::string m_what


Detailed Description

A general-purpose exception class derived from std::exception and containing a std::string.

Definition at line 38 of file gexception.h.


Constructor & Destructor Documentation

G::Exception::Exception (  ) 

Default constructor.

Definition at line 24 of file gexception.cpp.

G::Exception::Exception ( const char *  what  )  [explicit]

Constructor.

Definition at line 28 of file gexception.cpp.

G::Exception::Exception ( const std::string &  what  )  [explicit]

Constructor.

Definition at line 33 of file gexception.cpp.

G::Exception::Exception ( const char *  what,
const std::string &  more 
)

Constructor.

Definition at line 38 of file gexception.cpp.

References append().

G::Exception::Exception ( const std::string &  what,
const std::string &  more 
)

Constructor.

Definition at line 44 of file gexception.cpp.

References append().

G::Exception::Exception ( const std::string &  what,
const std::string &  more1,
const std::string &  more2 
)

Constructor.

Definition at line 50 of file gexception.cpp.

References append().

G::Exception::~Exception (  )  throw () [virtual]

Destructor.

Definition at line 58 of file gexception.cpp.


Member Function Documentation

const char * G::Exception::what (  )  const throw () [virtual]

Override from std::exception.

Definition at line 62 of file gexception.cpp.

References m_what.

void G::Exception::prepend ( const char *  context  ) 

Prepends context to the what string.

Inserts a separator as needed.

Definition at line 82 of file gexception.cpp.

References m_what.

void G::Exception::append ( const char *  more  ) 

Appends 'more' to the what string.

Inserts a separator as needed.

Definition at line 67 of file gexception.cpp.

References m_what.

Referenced by Exception().

void G::Exception::append ( const std::string &  more  ) 

Appends 'more' to the what string.

Inserts a separator as needed.

Definition at line 76 of file gexception.cpp.

References m_what.


Member Data Documentation

std::string G::Exception::m_what [protected]

Definition at line 41 of file gexception.h.

Referenced by append(), prepend(), and what().


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

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5