9#ifndef DRYCHEM_COMMON_UTILITIES_INCLUDE_COMMON_UTILS_ERRORS_EXCEPTIONS_FATALEXCEPTION_HPP
10#define DRYCHEM_COMMON_UTILITIES_INCLUDE_COMMON_UTILS_ERRORS_EXCEPTIONS_FATALEXCEPTION_HPP
32 const char*
what() const noexcept
override {
return error.message.c_str(); }
37 if (!
error.fileName.empty() &&
error.lineNumber != 0ul)
39 std::stringstream errorMessage;
41 errorMessage <<
'(' <<
error.fileName.substr(
error.fileName.find_last_of(
'/') + 1,
error.fileName.length())
42 <<
": " << std::to_string(
error.lineNumber) <<
")\n\t" <<
error.message;
44 error.message = errorMessage.str();
ErrorMessage error
Definition fatalException.hpp:30
FatalException(const ErrorMessage &error_)
Definition fatalException.hpp:35
void handleErrorWithMessage() const
Delegate our exception handling to the error handling classes.
Definition fatalException.hpp:49
const char * what() const noexcept override
Definition fatalException.hpp:32
Definition fatalException.hpp:20
auto printFatalErrorMessage
A convenience function for printing an error message when said error is fatal.
Definition errorHandling.hpp:49
Definition errorTypes.hpp:32