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_);
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 msg_
Message associated with the exception.
virtual std::string getClass() const
Method overridden by derived classes to indicate their type.
std::string procedure_
The name of the procedure where the exception occurred.
const char * what() const
Get a description of the error.
std::string formattedMessage_
Formatted message returned by what()
CanteraError()
Protected default constructor discourages throwing errors containing no information.
virtual std::string getMessage() const
Method overridden by derived classes to format the error message.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
This file contains definitions for utility functions and text for modules, inputfiles,...
Namespace for the Cantera kernel.