Cantera  2.1.2
Protected Member Functions | Protected Attributes | List of all members
XML_Error Class Reference

Classs representing a generic XML error condition. More...

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

Protected Member Functions

 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

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...
 

Additional Inherited Members

- 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...
 

Detailed Description

Classs representing a generic XML error condition.

Definition at line 24 of file xml.cpp.

Constructor & Destructor Documentation

XML_Error ( int  line = 0)
inlineprotected

Constructor.

Note, we don't actually post the error in this class. Therefore, this class can't be used externally. Therefore, it's a protected constructor.

Parameters
lineNumber number where the error occurred.

Definition at line 35 of file xml.cpp.

References Cantera::int2str().

virtual ~XML_Error ( )
throw (
)
inlineprotectedvirtual

destructor

Definition at line 45 of file xml.cpp.

Member Data Documentation

int m_line
protected

Line number of the file.

Definition at line 50 of file xml.cpp.

std::string m_msg
protected

String message for the error.

Definition at line 53 of file xml.cpp.


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