|
DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
|
Classes | |
| struct | ErrorMessage |
| class | FatalException |
| struct | is_fatal |
| struct | is_fatal< ErrorSeverity::Fatal > |
Enumerations | |
| enum class | ErrorSeverity { Warning , Fatal } |
Functions | |
| template<ErrorSeverity Severity = ErrorSeverity::Warning> | |
| void | printErrorMessage (const ErrorMessage &error) |
Variables | |
| template<ErrorSeverity Severity> | |
| constexpr bool | is_fatal_v = is_fatal<Severity>::value |
| Convenience variable template for ease-of-use. | |
| auto | printFatalErrorMessage = [](const ErrorMessage& error) { printErrorMessage<ErrorSeverity::Fatal>(error); } |
| A convenience function for printing an error message when said error is fatal. | |
|
strong |
|
inline |
A simple function to format and print an error message according to 1) the information provided, and 2) the severity of the given error.
| Severity | - The severity of the error in question (defaults to a warning message) |
| error | - The error message and other information about the location of the error |
References CppUtils::Errors::ErrorMessage::fileName, is_fatal_v, CppUtils::Errors::ErrorMessage::lineNumber, CppUtils::Errors::ErrorMessage::message, and CppUtils::Errors::ErrorMessage::programName.
Referenced by CppUtils::Strings::lexical_cast().
|
constexpr |
Referenced by printErrorMessage().
|
inline |
Referenced by CppUtils::Errors::FatalException::handleErrorWithMessage().