]> git.tdb.fi Git - libs/datafile.git/commitdiff
Add accessors for data_error members
authorMikko Rasa <tdb@tdb.fi>
Fri, 24 May 2013 14:46:20 +0000 (17:46 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 24 May 2013 14:46:20 +0000 (17:46 +0300)
source/dataerror.h

index 7b53c659b025db717d42791727293991430cfb49..5fca0c368f77b5b7db1a776ac58d0f85d82163c0 100644 (file)
@@ -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 &);
 };