FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Exception Class Reference

Base exception class. More...

#include <exception.hpp>

Inheritance diagram for FEAT::Exception:
FEAT::Analytic::ParsedFunctionEvalError FEAT::Assembly::GridTransfer::LocalMassMatrixSingularException FEAT::Assembly::SpaceTransfer::LocalMassMatrixSingularException FEAT::Cubature::UnknownRule FEAT::FileError FEAT::Geometry::MeshNodeLinkerError FEAT::InternalError FEAT::ParseError FEAT::Solver::SolverException FEAT::SyntaxError FEAT::Trafo::InverseMappingError FEAT::Xml::Error

Public Member Functions

virtual ~Exception () noexcept
 DTOR. More...
 
const String message () const
 returns error message More...
 
virtual const char * what () const noexcept override
 return descriptive exception name More...
 

Protected Member Functions

 Exception (const char *const function, const char *const file, const long line, const String &message_in)
 CTOR. More...
 
 Exception (const Exception &)
 copy CTOR More...
 
 Exception (const String &message_in)
 CTOR. More...
 

Private Attributes

const String _message
 descriptive error message More...
 

Detailed Description

Base exception class.

Author
Dirk Ribbrock

Definition at line 25 of file exception.hpp.

Constructor & Destructor Documentation

◆ Exception() [1/3]

FEAT::Exception::Exception ( const String message_in)
inlineexplicitprotected

CTOR.

Parameters
message_inthe exception's message.

Definition at line 39 of file exception.hpp.

◆ Exception() [2/3]

FEAT::Exception::Exception ( const char *const  function,
const char *const  file,
const long  line,
const String message_in 
)
inlineprotected

CTOR.

Parameters
functionthe current function name.
filethe current file name.
linethe current line number.
message_inthe exception's message.

Definition at line 52 of file exception.hpp.

◆ Exception() [3/3]

FEAT::Exception::Exception ( const Exception )
inlineprotected

copy CTOR

Definition at line 62 of file exception.hpp.

◆ ~Exception()

virtual FEAT::Exception::~Exception ( )
inlinevirtualnoexcept

DTOR.

Definition at line 68 of file exception.hpp.

Member Function Documentation

◆ message()

const String FEAT::Exception::message ( ) const
inline

returns error message

Definition at line 73 of file exception.hpp.

References _message.

◆ what()

virtual const char * FEAT::Exception::what ( ) const
inlineoverridevirtualnoexcept

return descriptive exception name

Reimplemented in FEAT::Xml::Error.

Definition at line 79 of file exception.hpp.

References _message.

Member Data Documentation

◆ _message

const String FEAT::Exception::_message
private

descriptive error message

Definition at line 30 of file exception.hpp.

Referenced by message(), and what().


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