XML_IllegalUnits Class Reference

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

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

List of all members.

Public Member Functions

 XML_IllegalUnits (std::string name, std::string units, int line=0)
 Constructor.
virtual ~XML_IllegalUnits () 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's units attribute has the wrong type of units.

Definition at line 142 of file xml.cpp.


Constructor & Destructor Documentation

XML_IllegalUnits ( std::string  name,
std::string  units,
int  line = 0 
) [inline]

Constructor.

Wrong units string.

Parameters:
name Name of the current XML node
units Units string in the "units" attribute
line Line number where the error occurred.

Definition at line 153 of file xml.cpp.

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

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

Destructor.

Definition at line 162 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