1 #ifndef MSP_DATAFILE_EXCEPT_H_
2 #define MSP_DATAFILE_EXCEPT_H_
9 class data_error: public std::runtime_error
16 data_error(const std::string &, unsigned, const std::string &);
17 data_error(const std::string &, unsigned, const std::exception &);
18 virtual ~data_error() throw() { }
20 const std::string &get_source() const { return source; }
21 unsigned get_line() const { return line; }
24 std::string make_what(const std::string &, unsigned, const std::string &);
28 class parse_error: public std::runtime_error
31 parse_error(const std::string &);
32 virtual ~parse_error() throw() { }
36 class syntax_error: public std::runtime_error
39 syntax_error(const std::string &t);
40 virtual ~syntax_error() throw() { }
44 class bad_definition: public std::runtime_error
47 bad_definition(const std::string &w);
48 virtual ~bad_definition() throw() { }
52 class nesting_error: public std::logic_error
55 nesting_error(const std::string &);
56 virtual ~nesting_error() throw() { }
59 } // namespace DataFile