#ifndef OBJSIMEXCEPTION_HPP #define OBJSIMEXCEPTION_HPP #include #include using namespace std; /** @author Frank Michler,,, */ class ObjSimException : public exception { public: ObjSimException() throw(): ErrorMessage("no error message specified") {}; ObjSimException(const string& _ErrorMessage) throw(): ErrorMessage(_ErrorMessage) {}; ~ObjSimException() throw() {}; virtual const char* what() const throw() {return string("ObjSim Exception: "+ErrorMessage).c_str();}; private: string ErrorMessage; }; #endif