Cantera  2.1.2
Public Member Functions | List of all members
XML_TagMismatch Class Reference

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

Inheritance diagram for XML_TagMismatch:
[legend]
Collaboration diagram for XML_TagMismatch:
[legend]

Public Member Functions

 XML_TagMismatch (const std::string &opentag, const std::string &closetag, int line=0)
 Constructor. More...
 
- Public Member Functions inherited from CanteraError
 CanteraError (const std::string &procedure, const std::string &msg)
 Normal Constructor for the CanteraError base class. More...
 
virtual ~CanteraError () throw ()
 Destructor for base class does nothing. More...
 
const char * what () const throw ()
 Get a description of the error. More...
 
void save ()
 Function to put this error onto Cantera's error stack. More...
 
virtual std::string getMessage () const
 Method overridden by derived classes to formatted the error message. More...
 
virtual std::string getClass () const
 Method overridden by derived classes to indicate their type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from XML_Error
 XML_Error (int line=0)
 Constructor. More...
 
virtual ~XML_Error () throw ()
 destructor More...
 
- Protected Member Functions inherited from CanteraError
 CanteraError ()
 Protected default constructor discourages throwing errors containing no information. More...
 
 CanteraError (const std::string &procedure)
 Constructor used by derived classes that override getMessage() More...
 
- Protected Attributes inherited from XML_Error
int m_line
 Line number of the file. More...
 
std::string m_msg
 String message for the error. More...
 
- Protected Attributes inherited from CanteraError
std::string procedure_
 The name of the procedure where the exception occurred. More...
 

Detailed Description

Class representing a specific type of XML file formatting error.

An XML tag is not matched

Definition at line 60 of file xml.cpp.

Constructor & Destructor Documentation

XML_TagMismatch ( const std::string &  opentag,
const std::string &  closetag,
int  line = 0 
)
inline

Constructor.

An XML element must have the same opening and closing name.

Parameters
opentagString representing the opening of the XML bracket
closetagString representing the closing of the XML bracket
lineLine number where the error occurred.

Definition at line 71 of file xml.cpp.

References Cantera::setError().


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