NamespacedException

Exception class that automatically includes the namespace name.

Defined in Rodin/Alert/NamespacedException.h

class NamespacedException;

Specialized exception class that prepends a namespace identifier to the error message. The namespace name is formatted with appropriate coloring and emphasis for clear visual identification in error output.

Example usage: NamespacedException("Rodin::Geometry") << "Invalid operation" << Raise;

This produces output like: "Error: Rodin::Geometry. Invalid operation"

Direct inheritance by class family
↓
NamespacedException

Inherits from

Base classResponsibility
Exceptionpublic
Full type
Exception
Exception class with formatted output capabilities.

Inherited interface

Declared inMembers
Message
4 members
Exception
3 members

Constructors, destructors, conversion operators

NamespacedException(const std::string& namesp)
Constructs a NamespacedException with the given namespace name.

Function documentation

NamespacedException(const std::string& namesp)

Constructs a NamespacedException with the given namespace name.

Parameters
namesp The namespace name to include in the error message.

Automatically formats the namespace name with appropriate styling and prepends it to the exception message.