XML_NoChild Class Reference

Class representing a specific type of XML file formatting error. More...

Inheritance diagram for XML_NoChild:
Inheritance graph
[legend]
Collaboration diagram for XML_NoChild:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XML_NoChild (const XML_Node *p, std::string parent, std::string child, int line=0)
 Constructor.
virtual ~XML_NoChild () throw ()
 Destructor.

Protected Attributes

int m_line
 Line number of the file.
std::string m_msg
 String message for the error.

Detailed Description

Class representing a specific type of XML file formatting error.

An XML_Node doesn't have a required child node

Definition at line 106 of file xml.cpp.


Constructor & Destructor Documentation

XML_NoChild ( const XML_Node p,
std::string  parent,
std::string  child,
int  line = 0 
) [inline]

Constructor.

An XML element doesn't have the required child node

Parameters:
p XML_Node to write a string error message
parent Namf of the parent node
child Name of the required child node
line Line number where the error occurred.

Definition at line 118 of file xml.cpp.

References XML_Error::m_msg, Cantera::setError(), and XML_Node::write().

virtual ~XML_NoChild (  )  throw () [inline, virtual]

Destructor.

Definition at line 135 of file xml.cpp.


Member Data Documentation

int m_line [protected, inherited]

Line number of the file.

Definition at line 69 of file xml.cpp.

std::string m_msg [protected, inherited]

String message for the error.

Definition at line 72 of file xml.cpp.

Referenced by XML_Error::XML_Error(), XML_IllegalUnits::XML_IllegalUnits(), XML_NoChild::XML_NoChild(), and XML_TagMismatch::XML_TagMismatch().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3