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

Xml Error base class. More...

#include <xml_scanner.hpp>

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

Public Member Functions

 Error (int iline, const String &sline, const String &msg, const String &err_type)
 
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 Error base class.

This class acts as a common base class for all errors related to the parsing of XML files.

Author
Peter Zajac

Definition at line 34 of file xml_scanner.hpp.

Constructor & Destructor Documentation

◆ Error()

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

Definition at line 48 of file xml_scanner.hpp.

Member Function Documentation

◆ get_line_number()

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

Definition at line 58 of file xml_scanner.hpp.

References my_iline.

◆ get_line_string()

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

Definition at line 64 of file xml_scanner.hpp.

References my_sline.

◆ get_message()

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

Definition at line 70 of file xml_scanner.hpp.

References 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
inlineoverridevirtualnoexcept
Returns
the what message

Reimplemented from FEAT::Exception.

Definition at line 76 of file xml_scanner.hpp.

References 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
private

erroneous line number

Definition at line 39 of file xml_scanner.hpp.

Referenced by get_line_number().

◆ my_msg

String FEAT::Xml::Error::my_msg
private

error message

Definition at line 43 of file xml_scanner.hpp.

Referenced by get_message().

◆ my_sline

String FEAT::Xml::Error::my_sline
private

erroneous line string

Definition at line 41 of file xml_scanner.hpp.

Referenced by get_line_string().

◆ my_what

String FEAT::Xml::Error::my_what
private

what string

Definition at line 45 of file xml_scanner.hpp.

Referenced by what().


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