System::ExceptionWrapper-klass

ExceptionWrapper class

Mall som representerar en omslag för undantag som är härledda från Exception-klass.

template<typename T>class ExceptionWrapper

Metoder

MetodBeskrivning
ExceptionWrapper(std::nullptr_t)Skapar en null-instans av ExceptionWrapper-klassen som inte representerar något undantag.
ExceptionWrapper(const ExceptionPtr&)Skapar en instans av ExceptionWrapper-klassen som innehåller den överförda pekaren.
ExceptionWrapper(const ExceptionWrapper&)Kopieringskonstruktor.
ExceptionWrapper(ExceptionWrapper&&)Flyttkonstruktor.
explicit ExceptionWrapper(Args&&…)Konstruktor som vidarebefordrar parametrar till Exception-klassens konstruktorer och skapar en smart pekare som håller en ny Exception-klassinstans.
static operator new(std::size_t)
static operator new[](std::size_t)
operator SharedPtr< Object >()Implicit typomvandlingsoperator till SharedPtr
operator->() constTillåter åtkomst till medlemmar i Exception-objektet.
operator=(const ExceptionWrapper&)Tilldelningsoperator.
operator=(ExceptionWrapper&&)Flyttilldelningsoperator.
static Type()Genväg för att hämta System::TypeInfo-objektet för Exception-typen.

Typedefs

TypedefBeskrivning
ExceptionTypeAnvänds för typomvandlingsfunktioner.

Se även