Class AmiException
Defined in File exception.h
Inheritance Relationships
Base Type
public std::exception
Derived Types
public amici::CvodeException
(Class CvodeException)public amici::IDAException
(Class IDAException)public amici::IntegrationFailure
(Class IntegrationFailure)public amici::IntegrationFailureB
(Class IntegrationFailureB)public amici::NewtonFailure
(Class NewtonFailure)public amici::SetupFailure
(Class SetupFailure)
Class Documentation
-
class AmiException : public std::exception
AMICI exception class.
Has a printf style interface to allow easy generation of error messages
Subclassed by amici::CvodeException, amici::IDAException, amici::IntegrationFailure, amici::IntegrationFailureB, amici::NewtonFailure, amici::SetupFailure
Public Functions
-
AmiException()
Constructor with printf style interface.
- Parameters
fmt – error message with printf format
... – printf formatting variables
-
explicit AmiException(char const *fmt, ...)
Constructor with printf style interface.
- Parameters
fmt – error message with printf format
... – printf formatting variables
-
const char *what() const noexcept override
Override of default error message function.
- Returns
msg error message
-
const char *getBacktrace() const
Returns the stored backtrace.
- Returns
trace backtrace
-
void storeBacktrace(int nMaxFrames)
Stores the current backtrace.
- Parameters
nMaxFrames – number of frames to go back in stacktrace
Protected Functions
-
void storeMessage(const char *fmt, va_list argptr)
Store the provided message.
- Parameters
fmt – error message with printf format
argptr – pointer to variadic argument list
-
AmiException()