Exception Class Reference

A general-purpose exception. More...

#include <Exception.h++>

Inheritance diagram for Exception:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Exception (String message=String::empty)
 Construct a new Exception with an optional cause message.
virtual ~Exception () throw ()
 Destructor.
String getMessage () const throw ()
 Get the message associated with the exception.
virtual const char * what () const throw ()
 Get the message associated with the exception.
virtual void write (std::ostream &stream) const
 Write a textual representation of the exception to a stream.
String toString () const
 Get a textual representation of the exception as a String.

Protected Attributes

String _message
 The cause message.

Detailed Description

A general-purpose exception.

Author:
Mark Lindner

Constructor & Destructor Documentation

Exception ( String  message = String::empty  ) 

Construct a new Exception with an optional cause message.

virtual ~Exception (  )  throw () [inline, virtual]

Destructor.


Member Function Documentation

String getMessage (  )  const throw () [inline]

Get the message associated with the exception.

String toString (  )  const [inline]

Get a textual representation of the exception as a String.

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

Get the message associated with the exception.

virtual void write ( std::ostream &  stream  )  const [inline, virtual]

Member Data Documentation

String _message [protected]

The cause message.


The documentation for this class was generated from the following files:
Generated on Sat Nov 26 16:49:09 2011 for libcommonc++ by  doxygen 1.6.3