Exception class
Exception class with formatted output capabilities.
A specialized exception class that extends both std::exception and the Alert messaging system. When raised, it outputs a formatted error message with red coloring and terminates the program.
The Exception class provides stream-like insertion operators for building detailed error messages with formatting capabilities.
Base classes
-
template<class Prefix>class Message<ExceptionPrefix>
- Forward declaration of the Message template class.
Derived classes
-
template<class T>class ClassException
- Exception class that automatically includes the class name.
-
template<class T, class FuncName>class MemberFunctionException
- Exception type for errors occurring in member functions.
- class NamespacedException
- Exception class that automatically includes the namespace name.
Public types
- using Parent = Message<ExceptionPrefix>
- Parent class type alias.
Constructors, destructors, conversion operators
Public functions
Function documentation
void Rodin:: Alert:: Exception:: raise() const override
Raises the exception to the user.
Outputs a formatted error message to the configured stream and terminates the program by calling std::abort(). The message includes the exception prefix and any accumulated message content.
const char* Rodin:: Alert:: Exception:: what() const override noexcept
Returns the exception message.
| Returns | A C-style string containing the exception message. |
|---|
This method provides compatibility with std::exception::what().