00001
00002
00003 #ifndef QUERY_TRANSLATION_EXCEPTION_HH
00004 #define QUERY_TRANSLATION_EXCEPTION_HH
00005
00006 #include <string>
00007
00008
00009 namespace LcgInfo{
00010
00011
00022 class QueryTranslationException{
00023
00024 public:
00025 QueryTranslationException();
00026 QueryTranslationException(std::string const & s, std::string const& file, int const & line);
00027 ~QueryTranslationException();
00028 std::string what();
00029 int get_line();
00030 std::string get_file();
00031
00032 private:
00033 std::string message;
00034 std::string filename;
00035 int linenumber;
00036 static std::string DefMess;
00037
00038 };
00039
00040 }
00041 #endif