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

Syntax Error exception class. More...

#include <exception.hpp>

Inheritance diagram for FEAT::SyntaxError:
FEAT::Exception

Public Member Functions

 SyntaxError (String message_in, String filename="")
 Constructor. More...
 
virtual ~SyntaxError () noexcept
 virtual destructor More...
 
String get_filename () const
 returns the filename More...
 
const String message () const
 returns error message More...
 
virtual const char * what () const noexcept override
 return descriptive exception name More...
 

Protected Attributes

String _filename
 name of the file containing the syntax error More...
 

Private Attributes

const String _message
 descriptive error message More...
 

Detailed Description

Syntax Error exception class.

This class derives from FEAT::Exception and is thrown by the parser classes when a syntax error is detected.

Author
Constantin Christof
Peter Zajac

Definition at line 248 of file exception.hpp.

Constructor & Destructor Documentation

◆ SyntaxError()

FEAT::SyntaxError::SyntaxError ( String  message_in,
String  filename = "" 
)
inlineexplicit

Constructor.

Parameters
[in]message_inA description of the syntax error.
[in]filenameThe name of the file in which the syntax error has been detected.

Definition at line 265 of file exception.hpp.

◆ ~SyntaxError()

virtual FEAT::SyntaxError::~SyntaxError ( )
inlinevirtualnoexcept

virtual destructor

Definition at line 274 of file exception.hpp.

Member Function Documentation

◆ get_filename()

String FEAT::SyntaxError::get_filename ( ) const
inline

returns the filename

Definition at line 279 of file exception.hpp.

References _filename.

◆ 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

◆ _filename

String FEAT::SyntaxError::_filename
protected

name of the file containing the syntax error

Definition at line 253 of file exception.hpp.

Referenced by get_filename().

◆ _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: