00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef XDKBIB_BASE_H
00019 #define XDKBIB_BASE_H
00020
00021 #if HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024
00025 #include <string>
00026 #include <stdexcept>
00027
00028 namespace xdkbib
00029 {
00030
00031
00032
00033 class parsing_error : public std::runtime_error
00034 {
00035 public:
00036 parsing_error(const std::string& what) throw();
00037 parsing_error(const std::string& fileName,const std::string& what,unsigned int l,unsigned int c) throw();
00038 virtual ~parsing_error() throw();
00039 const std::string& fileName() const;
00040 unsigned int line() const;
00041 unsigned int column() const;
00042 bool isInline() const;
00043 private:
00044 bool inline_;
00045 std::string fileName_;
00046 unsigned int l_;
00047 unsigned int c_;
00048 };
00049 }
00050
00051 #endif // XDKBIB_BASE_H