00001
00006 #ifndef GENETIK_UTIL_EXCEPTION
00007 #define GENETIK_UTIL_EXCEPTION
00008
00009 #include <string>
00010 #include <exception>
00011
00012 namespace genetiK {
00013
00014 namespace util {
00015
00020 class Exception : public std::exception
00021 {
00022 private:
00023 std::string message;
00024 public:
00028 explicit Exception(const std::string& mess);
00029
00032 virtual ~Exception() throw();
00033
00039 virtual const char* what() const throw() { return message.c_str(); }
00040
00044 virtual const std::string& getMessage() const throw() { return message; }
00045 };
00046
00047 }
00048 }
00049
00050 #endif