11 #ifndef _RD_BADFILEEXCEPTION_H
12 #define _RD_BADFILEEXCEPTION_H
25 : std::runtime_error(
"BadFileException"), _msg(msg){};
28 : std::runtime_error(
"BadFileException"), _msg(msg){};
30 const char *
what() const noexcept
override {
return _msg.c_str(); };
used by various file parsing classes to indicate a bad file
BadFileException(const std::string &msg)
construct with an error message
BadFileException(const char *msg)
construct with an error message
const char * what() const noexcept override
get the error message
~BadFileException() noexcept