FatalException.h

Go to the documentation of this file.
00001 #ifndef CFATALEXCEPTION_H_
00002 #define CFATALEXCEPTION_H_
00003 #include <stdexcept>
00004 
00005 namespace gplib
00006   {
00007     //! The basic exception class for all errors that arise in gplib
00008     /*! The FatalException class is thrown when there is a problem that cannot be fixed within the program
00009      * It is derived from runtime_error to make error message handling easier.
00010      */
00011     class FatalException: public std::runtime_error
00012       {
00013     public:
00014       //! The constructor takes the error description as an argument, just like std::runtime_error
00015       FatalException(const std::string whatString) :
00016         std::runtime_error(whatString)
00017         {
00018         }
00019       ;
00020       virtual ~FatalException() throw ()
00021         {
00022         }
00023       ;
00024       };
00025   }
00026 #endif /*CFATALEXCEPTION_H_*/

Generated on Tue May 4 16:52:14 2010 for GPLIB++ by  doxygen 1.5.8