17 static const char* stars = (
"*****************************************"
18 "**************************************\n");
57 return fmt::format(
"Array size ({}) too small. Must be at least {}.",
63 return fmt::format(
"IndexError: {}[{}] outside valid range of 0 to {}.",
64 arrayName_, m_, mmax_);
string getMessage() const override
Method overridden by derived classes to format the error message.
const char * what() const override
Get a description of the error.
virtual string getMessage() const
Method overridden by derived classes to format the error message.
string formattedMessage_
Formatted message returned by what()
string procedure_
The name of the procedure where the exception occurred.
CanteraError()
Protected default constructor discourages throwing errors containing no information.
string msg_
Message associated with the exception.
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.
string getMessage() const override
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 and logging,...
Namespace for the Cantera kernel.