26 class Error :
public std::exception {
32 inline explicit Error(
const char* message ) : msg_(message) {}
36 inline explicit Error(
const std::string& message ) : msg_(message) {}
41 inline virtual const char*
what() const noexcept {
return msg_.c_str(); }
Base class for all exceptions thrown by MARLEY functions.
Error(const std::string &message)
Error(const char *message)
virtual const char * what() const noexcept
Method called by the C++ standard library to display the error message.