ExceptionWrapper

ExceptionWrapper class

Template that represents wrapper of exceptions that are derived from Exception class.

template<typename T>class ExceptionWrapper

Methods

MethodDescription
ExceptionWrapper(std::nullptr_t)Constructs a null-instance of ExceptionWrapper class that does not represent any exception.
ExceptionWrapper(const ExceptionPtr&)Constructs a instance of ExceptionWrapper class that contains passed pointer.
ExceptionWrapper(const ExceptionWrapper&)Copy constructor.
ExceptionWrapper(ExceptionWrapper&&)Move constructor.
explicit ExceptionWrapper(Args&&…)Constructor that forwards parameters to the Exception class constructors and creates smart pointer that holds new Exception class instance.
static void * operator new(std::size_t)
static void * operator new[](std::size_t)
operator SharedPtr< Object >()Implicit cast operator to SharedPtr
T * operator->() constAllows to access members of the Exception object.
ExceptionWrapper& operator=(const ExceptionWrapper&)Assignment operator.
ExceptionWrapper& operator=(ExceptionWrapper&&)Move assignment operator.
static const System::TypeInfo& Type()Shortcut to get System::TypeInfo object for the Exception type.

Typedefs

TypedefDescription
ExceptionTypeUsed for casting functions.

See Also