X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fexcept.h;h=7892db5be1c292a34ff9c239d0d309b937f708fb;hp=4573e947297dedd3f8311b92842d7f62faa98aa4;hb=256f7238bc60d6dcc31a564988f5cc02a60c4537;hpb=e26f7e98e5d8a5666192a43348b3ca7a35f6b860 diff --git a/source/except.h b/source/except.h index 4573e94..7892db5 100644 --- a/source/except.h +++ b/source/except.h @@ -1,11 +1,12 @@ /* $Id$ This file is part of libmspdatafile -Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Copyright © 2008 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 +16,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