2 #include <msp/debug/demangle.h>
3 #include <msp/strings/format.h>
11 data_error::data_error(const string &s, unsigned l, const string &w):
12 runtime_error(make_what(s, l, w)),
17 data_error::data_error(const string &s, unsigned l, const exception &e):
18 runtime_error(make_what(s, l, format("%s (%s)", Debug::demangle(typeid(e).name()), e.what()))),
23 string data_error::make_what(const string &s, unsigned l, const string &w)
26 return format("%s:%d: %s", s, l, w);
28 return format("%s: %s", s, w);
31 } // namespace DataFile