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

Xml grammar error class. More...

#include <xml_scanner.hpp>

Inheritance diagram for FEAT::Xml::GrammarError:
FEAT::Xml::Error FEAT::Exception

Public Member Functions

 GrammarError (int iline, const String &sline, const String &msg)
 
int get_line_number () const
 
const Stringget_line_string () const
 
const Stringget_message () const
 
const String message () const
 returns error message More...
 
virtual const char * what () const noexcept override
 

Private Attributes

const String _message
 descriptive error message More...
 
int my_iline
 erroneous line number More...
 
String my_msg
 error message More...
 
String my_sline
 erroneous line string More...
 
String my_what
 what string More...
 

Detailed Description

Xml grammar error class.

This error class is thrown if the XML scanner encounters a grammar error.

A "grammar error" is any type of error that does not violate the XML syntax, but that cannot be interpreted by the parser.

Author
Peter Zajac

Definition at line 112 of file xml_scanner.hpp.

Constructor & Destructor Documentation

◆ GrammarError()

FEAT::Xml::GrammarError::GrammarError ( int  iline,
const String sline,
const String msg 
)
inline

Definition at line 116 of file xml_scanner.hpp.

Member Function Documentation

◆ get_line_number()

int FEAT::Xml::Error::get_line_number ( ) const
inlineinherited
Returns
the erroneous line number

Definition at line 58 of file xml_scanner.hpp.

References FEAT::Xml::Error::my_iline.

◆ get_line_string()

const String & FEAT::Xml::Error::get_line_string ( ) const
inlineinherited
Returns
the erroneous line string

Definition at line 64 of file xml_scanner.hpp.

References FEAT::Xml::Error::my_sline.

◆ get_message()

const String & FEAT::Xml::Error::get_message ( ) const
inlineinherited
Returns
the error message

Definition at line 70 of file xml_scanner.hpp.

References FEAT::Xml::Error::my_msg.

◆ 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::Xml::Error::what ( ) const
inlineoverridevirtualnoexceptinherited
Returns
the what message

Reimplemented from FEAT::Exception.

Definition at line 76 of file xml_scanner.hpp.

References FEAT::Xml::Error::my_what.

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().

◆ my_iline

int FEAT::Xml::Error::my_iline
privateinherited

erroneous line number

Definition at line 39 of file xml_scanner.hpp.

Referenced by FEAT::Xml::Error::get_line_number().

◆ my_msg

String FEAT::Xml::Error::my_msg
privateinherited

error message

Definition at line 43 of file xml_scanner.hpp.

Referenced by FEAT::Xml::Error::get_message().

◆ my_sline

String FEAT::Xml::Error::my_sline
privateinherited

erroneous line string

Definition at line 41 of file xml_scanner.hpp.

Referenced by FEAT::Xml::Error::get_line_string().

◆ my_what

String FEAT::Xml::Error::my_what
privateinherited

what string

Definition at line 45 of file xml_scanner.hpp.

Referenced by FEAT::Xml::Error::what().


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