Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Exception Class Reference

Highest exception class. More...

#include <mexception.h>

Inheritance diagram for Exception::

Object List of all members.

Public Methods

 Exception (const String &what)
 Exception (const Exception &orig)
 ~Exception ()
const String& what () const

Detailed Description

Highest exception class.

Replacement for standard C++ 'exception' class. I think there was some reason to replace it.

You can subclass this baseclass with the EXCEPTIONCLASS() macro. For example:

EXCEPTIONCLASS (assertion_failed);

See mmagisupp.h for some common exception classes. Many debugging macros that throw exceptions are also defined there.

Exception fails can be tracked with the FAILTRACE macro.

Definition at line 51 of file mexception.h.


Constructor & Destructor Documentation

Exception ( const String & what )
 

Constructor the Exception with the given explanation.

Example:

throw Exception ("Some text");


Member Function Documentation

const String & what ( ) const [inline]
 

Returns the explanation text given at throw.

Definition at line 67 of file mexception.h.


The documentation for this class was generated from the following file:
Generated at Tue Dec 4 19:53:29 2001 for MagiC++ by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001