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

Xml content error class. More...

#include <xml_scanner.hpp>

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

Public Member Functions

 ContentError (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 content error class.

This error class is thrown if the XML parser encounters a content error.

A "content error" is thrown when a parser node cannot interpret a content line.

Author
Peter Zajac

Definition at line 131 of file xml_scanner.hpp.

Constructor & Destructor Documentation

◆ ContentError()

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

Definition at line 135 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: