Cantera
3.1.0a1
|
An array index is out of range. More...
#include <ctexceptions.h>
An array index is out of range.
Definition at line 164 of file ctexceptions.h.
Public Member Functions | |
IndexError (const string &func, const string &arrayName, size_t m, size_t mmax) | |
Constructor. More... | |
string | getMessage () const override |
Method overridden by derived classes to format the error message. More... | |
string | getClass () const override |
Method overridden by derived classes to indicate their type. More... | |
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. More... | |
virtual | ~CanteraError () throw () |
Destructor for base class does nothing. More... | |
const char * | what () const override throw () |
Get a description of the error. More... | |
virtual string | getMethod () const |
Get the name of the method that threw the exception. More... | |
Private Attributes | |
string | arrayName_ |
size_t | m_ |
size_t | mmax_ |
Additional Inherited Members | |
Protected Member Functions inherited from CanteraError | |
CanteraError () | |
Protected default constructor discourages throwing errors containing no information. More... | |
CanteraError (const string &procedure) | |
Constructor used by derived classes that override getMessage() More... | |
Protected Attributes inherited from CanteraError | |
string | procedure_ |
The name of the procedure where the exception occurred. More... | |
string | formattedMessage_ |
Formatted message returned by what() More... | |
|
inline |
Constructor.
This class indicates an out-of-bounds array index.
func | String name for the function within which the error was generated. |
arrayName | name of the corresponding array |
m | This is the value of the out-of-bounds index. |
mmax | This is the maximum allowed value of the index. The minimum allowed value is assumed to be 0. |
Definition at line 178 of file ctexceptions.h.
|
overridevirtual |
Method overridden by derived classes to format the error message.
Reimplemented from CanteraError.
Definition at line 61 of file ctexceptions.cpp.
|
inlineoverridevirtual |
Method overridden by derived classes to indicate their type.
Reimplemented from CanteraError.
Definition at line 183 of file ctexceptions.h.