00001 #ifndef __EXCEPTIONBASE_H 00002 #define __EXCEPTIONBASE_H 00003 00004 #include <string> 00005 00006 using std::string; 00007 00014 class ExceptionBase 00015 { 00016 public: 00020 ExceptionBase() : what() {} 00021 00027 ExceptionBase(const char* mess) : what(mess) {} 00028 00032 ~ExceptionBase() {} 00033 00039 string &getMessage() { return what; } 00040 00041 private: 00042 string what; 00043 }; 00044 00045 #endif //__EXCEPTIONBASE_H
1.3.6