An array index is out of range.
More...
#include <ctexceptions.h>
|
| IndexError (const std::string &func, const std::string &arrayName, size_t m, size_t mmax) |
| Constructor. More...
|
|
virtual std::string | getMessage () const |
| Method overridden by derived classes to format the error message. More...
|
|
virtual std::string | getClass () const |
| Method overridden by derived classes to indicate their type. More...
|
|
template<typename... Args> |
| CanteraError (const std::string &procedure, const std::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 throw () |
| Get a description of the error. More...
|
|
An array index is out of range.
Definition at line 157 of file ctexceptions.h.
◆ IndexError()
IndexError |
( |
const std::string & |
func, |
|
|
const std::string & |
arrayName, |
|
|
size_t |
m, |
|
|
size_t |
mmax |
|
) |
| |
|
inline |
Constructor.
This class indicates an out-of-bounds array index.
- Parameters
-
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 171 of file ctexceptions.h.
◆ ~IndexError()
◆ getMessage()
std::string getMessage |
( |
| ) |
const |
|
virtual |
◆ getClass()
virtual std::string getClass |
( |
| ) |
const |
|
inlinevirtual |
◆ arrayName_
◆ m_
◆ mmax_
The documentation for this class was generated from the following files: