CanteraError Class Reference
[Error Handling]

Base class for exceptions thrown by Cantera classes. More...

#include <ctexceptions.h>

Inheritance diagram for CanteraError:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CanteraError (std::string procedure, std::string msg)
 Normal Constructor for the CanteraError base class.
virtual ~CanteraError () throw ()
 Destructor for base class does nothing.

Protected Member Functions

 CanteraError ()
 Empty base constructor is made protected so that it may be used only by inherited classes.

Detailed Description

Base class for exceptions thrown by Cantera classes.

This class is the base class for exceptions thrown by Cantera. It inherits from std::exception so that normal error handling operations from applications may automatically handle the errors in their own way.

Definition at line 78 of file ctexceptions.h.


Constructor & Destructor Documentation

CanteraError ( std::string  procedure,
std::string  msg 
)

Normal Constructor for the CanteraError base class.

This class doesn't have any storage associated with it. In its constructor, a call to the Application class is made to store the strings associated with the generated error condition.

Parameters:
procedure String name for the function within which the error was generated.
msg Descriptive string describing the type of error message.

Definition at line 1458 of file misc.cpp.

References Application::addError(), and Cantera::app().

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

Destructor for base class does nothing.

Definition at line 93 of file ctexceptions.h.

CanteraError (  )  [inline, protected]

Empty base constructor is made protected so that it may be used only by inherited classes.

We want to discourage throwing an error containing no information.

Definition at line 100 of file ctexceptions.h.

Referenced by UnknownVPSSMgr::UnknownVPSSMgr().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3