1 #ifndef MSP_DATAFILE_EXCEPT_H_
2 #define MSP_DATAFILE_EXCEPT_H_
11 class data_error: public std::runtime_error
18 data_error(const std::string &, unsigned, const std::string &);
19 data_error(const std::string &, unsigned, const std::exception &);
20 virtual ~data_error() throw() { }
22 const std::string &get_source() const { return source; }
23 unsigned get_line() const { return line; }
26 std::string make_what(const std::string &, unsigned, const std::string &);
30 class parse_error: public std::runtime_error
33 parse_error(const std::string &);
34 virtual ~parse_error() throw() { }
38 class syntax_error: public std::runtime_error
41 syntax_error(const std::string &t);
42 virtual ~syntax_error() throw() { }
46 class bad_definition: public std::runtime_error
49 bad_definition(const std::string &w);
50 virtual ~bad_definition() throw() { }
54 class nesting_error: public std::logic_error
57 nesting_error(const std::string &);
58 virtual ~nesting_error() throw() { }
62 class unknown_keyword: public std::runtime_error
65 unknown_keyword(const std::string &);
66 virtual ~unknown_keyword() throw() { }
70 class invalid_signature: public std::runtime_error
73 invalid_signature(const std::string &, const std::string &);
74 virtual ~invalid_signature() throw() { }
78 class no_collection: public std::runtime_error
81 no_collection(const std::type_info &);
84 } // namespace DataFile