]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loader.h
Convenience function for reporting errors in loaded data
[libs/datafile.git] / source / loader.h
index 604886125614728c2552d486decfa01afa19c804..4a1faa3f7af650ff4f4ec3726cc768fea77255cb 100644 (file)
@@ -139,6 +139,9 @@ protected:
        source may not necessarily be a file. */
        const std::string &get_source() const;
 
+       /** Throws a data_error from the current line. */
+       void error(const std::string &) const;
+
        virtual void finish() { }
 };