17 static const char* stars =
"***********************************************************************\n";
51 return fmt::format(
"Array size ({}) too small. Must be at least {}.",
57 return fmt::format(
"IndexError: {}[{}] outside valid range of 0 to {}.",
58 arrayName_, m_, mmax_);
std::string formattedMessage_
Formatted message returned by what()
std::string msg_
Message associated with the exception.
virtual std::string getMessage() const
Method overridden by derived classes to format the error message.
const char * what() const
Get a description of the error.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
virtual std::string getMessage() const
Method overridden by derived classes to format the error message.
virtual std::string getMessage() const
Method overridden by derived classes to format the error message.
std::string procedure_
The name of the procedure where the exception occurred.
CanteraError()
Protected default constructor discourages throwing errors containing no information.
Namespace for the Cantera kernel.
virtual std::string getClass() const
Method overridden by derived classes to indicate their type.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...