Cantera  3.1.0a1
Loading...
Searching...
No Matches
CallbackError Class Reference
Inheritance diagram for CallbackError:
[legend]

Detailed Description

Definition at line 73 of file funcWrapper.h.

Public Member Functions

 CallbackError (void *type, void *value)
 Constructor used by Func1Py.
 
 CallbackError (PyFuncInfo &info)
 Constructor used by pyOverride()
 
std::string getMessage () const override
 Method overridden by derived classes to format the error message.
 
std::string getClass () const override
 Method overridden by derived classes to indicate their type.
 
- Public Member Functions inherited from CanteraError
template<typename... Args>
 CanteraError (const string &procedure, const string &msg, const Args &... args)
 Normal Constructor for the CanteraError base class.
 
virtual ~CanteraError () throw ()
 Destructor for base class does nothing.
 
const char * what () const override throw ()
 Get a description of the error.
 
virtual string getMessage () const
 Method overridden by derived classes to format the error message.
 
virtual string getMethod () const
 Get the name of the method that threw the exception.
 
virtual string getClass () const
 Method overridden by derived classes to indicate their type.
 

Public Attributes

PyObject * m_type
 
PyObject * m_value
 

Additional Inherited Members

- Protected Member Functions inherited from CanteraError
 CanteraError ()
 Protected default constructor discourages throwing errors containing no information.
 
 CanteraError (const string &procedure)
 Constructor used by derived classes that override getMessage()
 
- Protected Attributes inherited from CanteraError
string procedure_
 The name of the procedure where the exception occurred.
 
string formattedMessage_
 Formatted message returned by what()
 

Constructor & Destructor Documentation

◆ CallbackError() [1/2]

CallbackError ( void *  type,
void *  value 
)
inline

Constructor used by Func1Py.

Definition at line 77 of file funcWrapper.h.

◆ CallbackError() [2/2]

CallbackError ( PyFuncInfo info)
inlineexplicit

Constructor used by pyOverride()

Definition at line 87 of file funcWrapper.h.

◆ ~CallbackError()

~CallbackError ( )
inline

Definition at line 98 of file funcWrapper.h.

Member Function Documentation

◆ getMessage()

std::string getMessage ( ) const
inlineoverridevirtual

Method overridden by derived classes to format the error message.

Reimplemented from CanteraError.

Definition at line 103 of file funcWrapper.h.

◆ getClass()

std::string getClass ( ) const
inlineoverridevirtual

Method overridden by derived classes to indicate their type.

Reimplemented from CanteraError.

Definition at line 133 of file funcWrapper.h.

Member Data Documentation

◆ m_type

PyObject* m_type

Definition at line 137 of file funcWrapper.h.

◆ m_value

PyObject* m_value

Definition at line 138 of file funcWrapper.h.


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