The MCFClass Project
MCFClass::MCFException Class Reference

Small class for exceptions. More...

#include <MCFClass.h>

Inherits exception.

Detailed Description

Small class for exceptions.

Derives from std::exception implementing the virtual method what() – and since what is virtual, remember to always catch it by reference (catch exception &e) if you want the thing to work. MCFException class are thought to be of the "fatal" type, i.e., problems for which no solutions exists apart from aborting the program. Other kinds of exceptions can be properly handled by defining derived classes with more information.