DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
Loading...
Searching...
No Matches
CppUtils::Errors::FatalException Class Reference

#include <fatalException.hpp>

Inheritance diagram for CppUtils::Errors::FatalException:
CppUtils::Files::FileNotFound CppUtils::Math::InputSizeMismatch

Public Member Functions

 FatalException (const ErrorMessage &error_)
 
void handleErrorWithMessage () const
 Delegate our exception handling to the error handling classes.
 

Private Member Functions

const char * what () const noexcept override
 

Private Attributes

ErrorMessage error {}
 

Detailed Description

Our main exception class deriving from std::exception. This class formats the supplied error message and provides methods for handling the fatal errors it represents.

Note
Here we make what() a private member function so users are forced to handle the exception

Constructor & Destructor Documentation

◆ FatalException()

CppUtils::Errors::FatalException::FatalException ( const ErrorMessage & error_)
inlineexplicit

Member Function Documentation

◆ what()

const char * CppUtils::Errors::FatalException::what ( ) const
inlineoverrideprivatenoexcept

References error.

◆ handleErrorWithMessage()

void CppUtils::Errors::FatalException::handleErrorWithMessage ( ) const
inline

Member Data Documentation

◆ error

ErrorMessage CppUtils::Errors::FatalException::error {}
private

The documentation for this class was generated from the following file: