00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef EXCEPTION_HPP
00011 #define EXCEPTION_HPP
00012
00013 #include <string>
00014
00016
00020 class Exception
00021 {
00022 public:
00023 Exception( const std::string &error );
00024 Exception( const char *file, int line, const std::string &error );
00025 virtual ~Exception();
00026
00028 const std::string &getError() const { return ErrorMsg; }
00029
00030 private:
00031 std::string ErrorMsg;
00032 };
00033
00034
00035 #endif // EXCEPTION_HPP