X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ferror.h;fp=source%2Ferror.h;h=0000000000000000000000000000000000000000;hb=aa8bfd3c13848dc27947d3947038bd66c258d288;hp=11bccd88a2459ed1433d4ec70119245df095fe12;hpb=2f79370bffe0bac865dc97c5114dc87c1936fbb4;p=libs%2Fdatafile.git diff --git a/source/error.h b/source/error.h deleted file mode 100644 index 11bccd8..0000000 --- a/source/error.h +++ /dev/null @@ -1,36 +0,0 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ -#ifndef MSP_DATAFILE_ERROR_H_ -#define MSP_DATAFILE_ERROR_H_ - -#include - -namespace Msp { -namespace DataFile { - -class TypeError: public Exception -{ -public: - TypeError(const std::string &w_): Exception(w_) { } -}; - -class ParseError: public Exception -{ -public: - ParseError(const std::string &w_, const std::string &s, unsigned l): Exception(w_), source(s), line(l) { } - const std::string &get_source() const { return source; } - unsigned get_line() const { return line; } - ~ParseError() throw() { } -private: - std::string source; - unsigned line; -}; - -} // namespace DataFile -} // namespace Msp - -#endif