1234567891011121314151617181920212223 |
- #ifndef OBJSIMEXCEPTION_HPP
- #define OBJSIMEXCEPTION_HPP
- #include <exception>
- #include <string>
- using namespace std;
- /**
- @author Frank Michler,,, <frank@pc13365>
- */
- 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
|