X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexcept.h;h=ff256a4449c0a0eef903857ccfc3312dc4f79569;hb=34213c1b452d87fcf1649bf42179a218361b5818;hp=4573e947297dedd3f8311b92842d7f62faa98aa4;hpb=aa8bfd3c13848dc27947d3947038bd66c258d288;p=libs%2Fdatafile.git diff --git a/source/except.h b/source/except.h index 4573e94..ff256a4 100644 --- a/source/except.h +++ b/source/except.h @@ -1,11 +1,5 @@ -/* $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_ +#ifndef MSP_DATAFILE_EXCEPT_H_ +#define MSP_DATAFILE_EXCEPT_H_ #include @@ -15,19 +9,13 @@ namespace DataFile { class TypeError: public Exception { public: - TypeError(const std::string &w_): Exception(w_) { } + 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; + ParseError(const std::string &w): Exception(w) { } }; } // namespace DataFile