Error thrown for problems processing information contained in an AnyMap or AnyValue.
More...
#include <AnyMap.h>
Error thrown for problems processing information contained in an AnyMap or AnyValue.
This class uses the file, line, and column information stored in an AnyMap or AnyValue to provide an error message including context lines for the original user input.
Definition at line 737 of file AnyMap.h.
|
template<typename... Args> |
| InputFileError (const string &procedure, const AnyBase &node, const string &message, const Args &... args) |
| Indicate an error occurring in procedure while using information from node .
|
|
template<typename... Args> |
| InputFileError (const string &procedure, const AnyBase &node1, const AnyBase &node2, const string &message, const Args &... args) |
| Indicate an error occurring in procedure while using information from node1 and node2 .
|
|
string | getClass () const override |
| Method overridden by derived classes to indicate their type.
|
|
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.
|
|
|
static string | formatError (const string &message, int line, int column, const shared_ptr< AnyMap > &metadata) |
|
static string | formatError2 (const string &message, int line1, int column1, const shared_ptr< AnyMap > &metadata1, int line2, int column2, const shared_ptr< AnyMap > &metadata2) |
|
◆ InputFileError() [1/2]
template<typename... Args>
InputFileError |
( |
const string & |
procedure, |
|
|
const AnyBase & |
node, |
|
|
const string & |
message, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
Indicate an error occurring in procedure
while using information from node
.
The message
and args
are processed as in the CanteraError class.
Definition at line 744 of file AnyMap.h.
◆ InputFileError() [2/2]
template<typename... Args>
Indicate an error occurring in procedure
while using information from node1
and node2
.
The message
and args
are processed as in the CanteraError class.
Definition at line 758 of file AnyMap.h.
◆ getClass()
string getClass |
( |
| ) |
const |
|
inlineoverridevirtual |
Method overridden by derived classes to indicate their type.
Reimplemented from CanteraError.
Definition at line 770 of file AnyMap.h.
◆ formatError()
string formatError |
( |
const string & |
message, |
|
|
int |
line, |
|
|
int |
column, |
|
|
const shared_ptr< AnyMap > & |
metadata |
|
) |
| |
|
staticprotected |
◆ formatError2()
string formatError2 |
( |
const string & |
message, |
|
|
int |
line1, |
|
|
int |
column1, |
|
|
const shared_ptr< AnyMap > & |
metadata1, |
|
|
int |
line2, |
|
|
int |
column2, |
|
|
const shared_ptr< AnyMap > & |
metadata2 |
|
) |
| |
|
staticprotected |
The documentation for this class was generated from the following files: