Cantera  2.0
Public Member Functions | Protected Attributes | List of all members
UnknownThermoPhaseModel Class Reference

Specific error to be thrown if the type of Thermo manager is unrecognized. More...

#include <ThermoFactory.h>

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

Public Member Functions

 UnknownThermoPhaseModel (std::string proc, std::string thermoModel)
 Constructor.
 
virtual ~UnknownThermoPhaseModel () throw ()
 destructor
 
const char * what () const throw ()
 Get a description of the error.
 
void save ()
 Function to put this error onto Cantera's error stack.
 
virtual std::string getMessage () const
 Method overridden by derived classes to formatted the error message.
 
virtual std::string getClass () const
 Method overridden by derived classes to indicate their type.
 

Protected Attributes

std::string procedure_
 The name of the procedure where the exception occurred.
 

Detailed Description

Specific error to be thrown if the type of Thermo manager is unrecognized.

This particular error class may be caught, if the application may have other models that the main Cantera application doesn't know about.

Definition at line 37 of file ThermoFactory.h.

Constructor & Destructor Documentation

UnknownThermoPhaseModel ( std::string  proc,
std::string  thermoModel 
)
inline

Constructor.

Parameters
procFunction name where the error occurred.
thermoModelSting name of ThermoPhase which didn't match

Definition at line 45 of file ThermoFactory.h.

virtual ~UnknownThermoPhaseModel ( ) throw ()
inlinevirtual

destructor

Definition at line 50 of file ThermoFactory.h.

Member Function Documentation

const char * what ( ) const throw ()
inherited
void save ( )
inherited
std::string getMessage ( ) const
virtualinherited

Method overridden by derived classes to formatted the error message.

Reimplemented in IndexError, and ArraySizeError.

Definition at line 56 of file ctexceptions.cpp.

References CanteraError::msg_.

Referenced by CanteraError::save(), and CanteraError::what().

virtual std::string getClass ( ) const
inlinevirtualinherited

Method overridden by derived classes to indicate their type.

Reimplemented in IndexError, and ArraySizeError.

Definition at line 97 of file ctexceptions.h.

Referenced by CanteraError::what().

Member Data Documentation

std::string procedure_
protectedinherited

The name of the procedure where the exception occurred.

Definition at line 107 of file ctexceptions.h.

Referenced by CanteraError::save(), and CanteraError::what().


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