From 4b6e5a6fdbea832c50b15b1ee12715739634da3c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 24 May 2013 17:46:20 +0300 Subject: [PATCH] Add accessors for data_error members --- source/dataerror.h | 3 +++ 1 file changed, 3 insertions(+) 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 &); }; -- 2.43.0