NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NeoFOAM::NeoFOAMException Class Reference

Custom exception class for NeoFOAM. More...

#include <error.hpp>

Inheritance diagram for NeoFOAM::NeoFOAMException:

Public Member Functions

 NeoFOAMException (const std::string &message)
 Constructs a NeoFOAMException object with the given error message.
 
const char * what () const noexcept override
 Returns the error message associated with the exception.
 

Detailed Description

Custom exception class for NeoFOAM.

This class is derived from std::exception and provides a custom exception type for NeoFOAM. It stores an error message and overrides the what() function to return the error message.

Definition at line 37 of file error.hpp.

Constructor & Destructor Documentation

◆ NeoFOAMException()

NeoFOAM::NeoFOAMException::NeoFOAMException ( const std::string &  message)
inlineexplicit

Constructs a NeoFOAMException object with the given error message.

Parameters
messageThe error message associated with the exception.

Definition at line 45 of file error.hpp.

Member Function Documentation

◆ what()

const char * NeoFOAM::NeoFOAMException::what ( ) const
inlineoverridenoexcept

Returns the error message associated with the exception.

Returns
const char* The error message.

Definition at line 51 of file error.hpp.


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