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

Class for parser related errors. More...

#include <exception.hpp>

Inheritance diagram for FEAT::ParseError:
FEAT::Exception FEAT::Analytic::ParsedFunctionParseError FEAT::Geometry::VoxelMapFormulaParseError

Public Member Functions

 ParseError (const String &message_in)
 Constructor. More...
 
 ParseError (const String &name, const String &got, const String &expect)
 Constructor. More...
 
const String message () const
 returns error message More...
 
virtual const char * what () const noexcept override
 return descriptive exception name More...
 

Private Attributes

const String _message
 descriptive error message More...
 

Detailed Description

Class for parser related errors.

Definition at line 130 of file exception.hpp.

Constructor & Destructor Documentation

◆ ParseError() [1/2]

FEAT::ParseError::ParseError ( const String message_in)
inlineexplicit

Constructor.

Parameters
[in]message_inA short error message.

Definition at line 140 of file exception.hpp.

◆ ParseError() [2/2]

FEAT::ParseError::ParseError ( const String name,
const String got,
const String expect 
)
inlineexplicit

Constructor.

Parameters
[in]nameThe name of the entry that was to be parsed.
[in]gotThe string that was meant to be parsed.
[in]expectWhat was expected instead, e.g. "a non-negative integer"

Definition at line 157 of file exception.hpp.

◆ ~ParseError()

virtual FEAT::ParseError::~ParseError ( )
inlinevirtualnoexcept

Definition at line 162 of file exception.hpp.

Member Function Documentation

◆ message()

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

returns error message

Definition at line 73 of file exception.hpp.

References FEAT::Exception::_message.

◆ what()

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

return descriptive exception name

Reimplemented in FEAT::Xml::Error.

Definition at line 79 of file exception.hpp.

References FEAT::Exception::_message.

Member Data Documentation

◆ _message

const String FEAT::Exception::_message
privateinherited

descriptive error message

Definition at line 30 of file exception.hpp.

Referenced by FEAT::Exception::message(), and FEAT::Exception::what().


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