This reverts commit
b0b9af7216560da2a46ea38fe2df959f4dfb126f.
Why did I even add this function. The Loader catches any exceptions and
rethrows them as data_errors with the correct line number information.
return cur_st->source;
}
-void Loader::error(const string &msg) const
-{
- if(!cur_st)
- throw logic_error("!cur_st");
- throw data_error(cur_st->source, cur_st->line, msg);
-}
-
Loader::ActionKey::ActionKey(const string &k, const string &s):
keyword(k),
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() { }
};