Class representing a specific type of XML file formatting error. More...
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. |
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.
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
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] |
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().