template<class T>
ClassException class
Exception class that automatically includes the class name.
| Template parameters | |
|---|---|
| T | The class type where the exception occurred. |
Specialized exception class that prepends the class name to the error message. Uses Boost.TypeIndex to automatically extract and format the class name with proper coloring and emphasis.
Example usage: ClassException(*this) << "Invalid state detected" << Raise;
This produces output like: "Error: In class MyClass. Invalid state detected"
Base classes
Constructors, destructors, conversion operators
- ClassException(const T&)
- Constructs a ClassException for the given class instance.
Function documentation
template<class T>
Rodin:: Alert:: ClassException<T>:: ClassException(const T&)
Constructs a ClassException for the given class instance.
Automatically extracts the class name using Boost.TypeIndex and prepends it to the exception message with appropriate formatting.