3 This file is part of libmspdatafile
4 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
7 #ifndef MSP_DATAFILE_ERROR_H_
8 #define MSP_DATAFILE_ERROR_H_
10 #include <msp/core/except.h>
15 class TypeError: public Exception
18 TypeError(const std::string &w_): Exception(w_) { }
21 class ParseError: public Exception
24 ParseError(const std::string &w_, const std::string &s, unsigned l): Exception(w_), source(s), line(l) { }
25 const std::string &get_source() const { return source; }
26 unsigned get_line() const { return line; }
27 ~ParseError() throw() { }
33 } // namespace DataFile