Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Exception Class Reference

Highest exception class. More...

#include <mexception.h>

Inheritance diagram for Exception:

List of all members.

Public Methods

 Exception (const String &what)
const Stringwhat () 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 62 of file mexception.h.


Constructor & Destructor Documentation

Exception const String   what
 

Constructor the Exception with the given explanation.

Example:

throw Exception ("Some text");

Definition at line 422 of file mobject.cc.


Member Function Documentation

const String& what   const [inline]
 

Returns the explanation text given at throw.

Definition at line 78 of file mexception.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18