| 95 | // General error: Get file + line and a short message |
| 96 | struct FileLineException : std::runtime_error { |
| 97 | FileLineException(const std::string &arg, const char *file, int line) : runtime_error(arg) { |
| 98 | msg = std::string(file) + ":" + std::to_string(line) + ": " + arg; |
| 99 | } |
| 100 | ~FileLineException() throw() {} |
| 101 | const char *what() const throw() { return msg.c_str(); } |
| 102 |
nothing calls this directly
no test coverage detected