00001 #ifndef CFATALEXCEPTION_H_ 00002 #define CFATALEXCEPTION_H_ 00003 #include <stdexcept> 00004 /*! The FatalException class is thrown when there is a problem that cannot be fixed within the program 00005 * It is derived from runtime_error to make error message handling easier. 00006 */ 00007 00008 class CFatalException: public std::runtime_error 00009 { 00010 public: 00011 CFatalException(const std::string whatString) : std::runtime_error(whatString){}; 00012 virtual ~CFatalException() throw(){}; 00013 }; 00014 00015 #endif /*CFATALEXCEPTION_H_*/
1.5.8