Exception

Exception type for errors reported by Scotch wrappers.

Defined in Rodin/Scotch/Exception.h

template <
  class T,
  class FuncName>
class Exception;
Template parameters
T Type of the object that raised the exception.
FuncName Type used to identify the member function.
Direct inheritance by class family
↓
Exception

Inherits from

Base classResponsibility
Alert::MemberFunctionException<T, …>public
Full type
Alert::MemberFunctionException< T, FuncName >
Exception type for errors occurring in member functions.

Overrides

MemberBase declaration
raise()MemberFunctionException::raise

Inherited interface

Declared inMembers
Alert::Message
4 members
Alert::Exception
1 members

Public types

using Parent = Alert::MemberFunctionException<T, FuncName>
Alias for the parent exception class.

Constructors, destructors, conversion operators

Exception(const char* msg, const T& cls, const FuncName& funcName)
Constructs an UnsafeAccessException.

Public functions

void raise() const override
Raises the exception.

Function documentation

Exception(const char* msg, const T& cls, const FuncName& funcName)

Constructs an UnsafeAccessException.

Parameters
msg Error message to display.
cls The object (resource) being accessed unsafely.
funcName The name of the member function where the unsafe access occurred.

Initializes the exception with the given object and function name.