21 const std::string& message)
22 : std::runtime_error(message) {
23 std::ostringstream out;
24 out <<
"[" << file <<
":" << line <<
"] " << message;
34 const std::string& extra_message)
35 : std::runtime_error(other.message_ + extra_message),
36 message_(other.message_ + extra_message) {}
42 const char*
what()
const throw() {
return message_.c_str(); }
Error with file and line references to the calling code.
PalimpsestError(const std::string &file, unsigned line, const std::string &message)
Create a new error.
const char * what() const
Error message.
~PalimpsestError()
Empty destructor.
PalimpsestError(const PalimpsestError &other, const std::string &extra_message)
Copy an existing error, adding to the error message.
Exceptions raised by the library.