1 #ifndef MSP_DATAFILE_EXCEPT_H_
2 #define MSP_DATAFILE_EXCEPT_H_
10 class data_error: public std::runtime_error
17 data_error(const std::string &, unsigned, const std::string &);
18 data_error(const std::string &, unsigned, const std::exception &);
19 virtual ~data_error() throw() { }
21 const std::string &get_source() const { return source; }
22 unsigned get_line() const { return line; }
25 std::string make_what(const std::string &, unsigned, const std::string &);
29 class parse_error: public std::runtime_error
32 parse_error(const std::string &);
33 virtual ~parse_error() throw() { }
37 class syntax_error: public std::runtime_error
40 syntax_error(const std::string &t);
41 virtual ~syntax_error() throw() { }
45 class bad_definition: public std::runtime_error
48 bad_definition(const std::string &w);
49 virtual ~bad_definition() throw() { }
53 class nesting_error: public std::logic_error
56 nesting_error(const std::string &);
57 virtual ~nesting_error() throw() { }
61 class unknown_keyword: public std::runtime_error
64 unknown_keyword(const std::string &);
65 virtual ~unknown_keyword() throw() { }
69 class invalid_signature: public std::runtime_error
72 invalid_signature(const std::string &, const std::string &);
73 virtual ~invalid_signature() throw() { }
77 class no_collection: public std::runtime_error
80 no_collection(const std::type_info &);
83 } // namespace DataFile