From: Mikko Rasa Date: Fri, 24 May 2013 14:46:20 +0000 (+0300) Subject: Add accessors for data_error members X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4b6e5a6fdbea832c50b15b1ee12715739634da3c;p=libs%2Fdatafile.git Add accessors for data_error members --- diff --git a/source/dataerror.h b/source/dataerror.h index 7b53c65..5fca0c3 100644 --- a/source/dataerror.h +++ b/source/dataerror.h @@ -17,6 +17,9 @@ public: data_error(const std::string &, unsigned, const std::exception &); virtual ~data_error() throw() { } + const std::string &get_source() const { return source; } + unsigned get_line() const { return line; } + private: std::string make_what(const std::string &, unsigned, const std::string &); };