/*************************************************************************** * Originally created by J.S. Graulich June 2010 * * * ***************************************************************************/ #ifndef __MDEXCEPTION_H #define __MDEXCEPTION_H #include #include #include #include #include #include #include class MDexception { public: enum MD_SEVERITY { WARNING=0, SERIOUS=1, FATAL=2 }; MDexception(const std::string & aErrorDescription = "",MD_SEVERITY = SERIOUS ); // Default destructor has nothing to do // except be declared virtual and non-throwing. ~MDexception() throw() {} std::string GetDescription() {return mErrorDescription;} protected: // sometimes derived classes want to manipulate this one std::string mErrorDescription; MD_SEVERITY mSeverity; }; #endif