Template that represents wrapper of exceptions that are derived from Exception class. More...
Public Types | |
using | ExceptionType = T |
Used for casting functions. More... | |
Public Member Functions | |
operator SharedPtr< Object > () | |
Implicit cast operator to SharedPtr<Object> More... | |
ExceptionWrapper (std::nullptr_t) | |
Constructs a null-instance of ExceptionWrapper class that does not represent any exception. More... | |
ExceptionWrapper (const ExceptionPtr &ptr) | |
ExceptionWrapper (const ExceptionWrapper &other) | |
ExceptionWrapper (ExceptionWrapper &&other) noexcept | |
ExceptionWrapper & | operator= (const ExceptionWrapper &other) |
ExceptionWrapper & | operator= (ExceptionWrapper &&other) noexcept |
template<typename ... Args, typename = std::enable_if_t< !System::Details::IsForwardingOf<ExceptionPtr, Args...>::value && !System::Details::IsForwardingOf<ExceptionWrapper<T>, Args...>::value>> | |
ExceptionWrapper (Args &&...args) | |
T * | operator-> () const |
Static Public Member Functions | |
static void * | operator new (std::size_t)=delete |
static void * | operator new[] (std::size_t)=delete |
static const System::TypeInfo & | Type () |
Template that represents wrapper of exceptions that are derived from Exception class.
using System::ExceptionWrapper< T >::ExceptionType = T |
Used for casting functions.
|
inline |
Constructs a null-instance of ExceptionWrapper class that does not represent any exception.
|
inline |
Constructs a instance of ExceptionWrapper class that contains passed pointer.
ptr | Smart pointer to the instance of Exception class. |
|
inline |
Copy constructor.
other | Other instance of wrapper class that must be copied. |
|
inlinenoexcept |
Move constructor.
other | Other instance of wrapper class that must be moved. |
|
inlineexplicit |
Constructor that forwards parameters to the Exception class constructors and creates smart pointer that holds new Exception class instance.
|
staticdelete |
|
staticdelete |
|
inline |
Implicit cast operator to SharedPtr<Object>
|
inline |
Allows to access members of the Exception object.
System::NullReferenceException | if pointer is null. |
|
inline |
Assignment operator.
other | Other instance of wrapper class that must be assigned. |
|
inlinenoexcept |
Move assignment operator.
other | Other instance of wrapper class that must be moved. |
|
inlinestatic |
Shortcut to get System::TypeInfo object for the Exception type.