1 #ifndef MSP_PARSER_ERROR_H_
2 #define MSP_PARSER_ERROR_H_
4 #include <msp/core/error.h>
9 class TypeError: public Exception
12 TypeError(const std::string &w_): Exception(w_) { }
15 class ParseError: public Exception
18 ParseError(const std::string &w_, const std::string &s, unsigned l): Exception(w_), source(s), line(l) { }
19 const std::string &get_source() const { return source; }
20 unsigned get_line() const { return line; }
21 ~ParseError() throw() { }