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

Custom exception class for NeoN. More...

#include <error.hpp>

Inheritance diagram for NeoN::NeoNException:

Public Member Functions

 NeoNException (const std::string &message)
 Constructs a NeoNException 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 NeoN.

This class is derived from std::exception and provides a custom exception type for NeoN. 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

◆ NeoNException()

NeoN::NeoNException::NeoNException ( const std::string &  message)
inlineexplicit

Constructs a NeoNException 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 * NeoN::NeoNException::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: