Array size error. More...
#include <ctexceptions.h>
Array size error.
This error is thrown if a supplied length to a vector supplied to Cantera is too small.
Definition at line 141 of file ctexceptions.h.
Public Member Functions | |
ArraySizeError (const string &procedure, size_t sz, size_t reqd) | |
Constructor. | |
string | getMessage () const override |
Method overridden by derived classes to format the error message. | |
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. | |
Private Attributes | |
size_t | sz_ |
size_t | reqd_ |
Additional Inherited Members | |
Static Public Member Functions inherited from CanteraError | |
static void | setStackTraceDepth (int depth) |
Set the number of stack frames to include when a CanteraError is displayed. | |
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() | |
|
inline |
Constructor.
The length needed is supplied by the argument, reqd, and the length supplied is given by the argument sz.
procedure | String name for the function within which the error was generated. |
sz | This is the length supplied to Cantera. |
reqd | This is the required length needed by Cantera |
Definition at line 154 of file ctexceptions.h.
|
overridevirtual |
Method overridden by derived classes to format the error message.
Reimplemented from CanteraError.
Definition at line 67 of file ctexceptions.cpp.
|
inlineoverridevirtual |
Method overridden by derived classes to indicate their type.
Reimplemented from CanteraError.
Definition at line 158 of file ctexceptions.h.
|
private |
Definition at line 163 of file ctexceptions.h.
|
private |
Definition at line 163 of file ctexceptions.h.