16 static const char* stars =
"***********************************************************************\n";
19 procedure_(procedure),
28 procedure_(procedure),
67 ss <<
"Array size (" << sz_ <<
") too small. Must be at least " << reqd_ <<
".";
74 ss <<
"IndexError: " << arrayName_ <<
"[" << m_ <<
"]" <<
75 " outside valid range of 0 to " << (mmax_) <<
".";
std::string formattedMessage_
Formatted message returned by what()
bool saved_
Exception has already been saved to Cantera's error stack.
void addError(const std::string &r, const std::string &msg)
Set an error condition in the application class without throwing an exception.
std::string msg_
Message associated with the exception.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, HTML_logs (see Input File Handling, Diagnostic Output, Writing messages to the screen and Writing HTML Logfiles).
virtual std::string getMessage() const
Method overridden by derived classes to formatted the error message.
const char * what() const
Get a description of the error.
std::string procedure_
The name of the procedure where the exception occurred.
virtual std::string getMessage() const
Method overridden by derived classes to formatted the error message.
CanteraError()
Protected default constructor discourages throwing errors containing no information.
virtual std::string getMessage() const
Method overridden by derived classes to formatted the error message.
virtual std::string getClass() const
Method overridden by derived classes to indicate their type.
static Application * Instance()
Return a pointer to the one and only instance of class Application.
Contains declarations for string manipulation functions within Cantera.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
void save()
Function to put this error onto Cantera's error stack.