6.0.0-rc4Source

QUnhandledException Class

The QUnhandledException class represents an unhandled exception in a worker thread. More…

Header#include <QUnhandledException>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes
InheritsQException

List of all members, including inherited members

Public Functions

QUnhandledException(std::exception_ptr exception = std::current_exception())
QUnhandledException(const QUnhandledException &other)
~QUnhandledException()
std::exception_ptrexception() const

Reimplemented Public Functions

voidraise() const
QUnhandledException *clone() const

Detailed Description

It carries the std::exception_ptr of an exception that is not a QException, so that it can be rethrown in another thread. Use exception() to get at the original.

See also QException.

Member Function Documentation

QUnhandledException::QUnhandledException(std::exception_ptr exception = std::current_exception())

Constructs a QUnhandledException holding exception, which is the current exception by default.

QUnhandledException::QUnhandledException(const QUnhandledException &other)

Constructs a copy of other.

[override] QUnhandledException::~QUnhandledException()

Destroys the exception.

[override] QUnhandledException * QUnhandledException::clone() const

Reimplements QException::clone().

Returns a copy of this exception, allocated with new.

See also raise().

std::exception_ptr QUnhandledException::exception() const

Returns the exception that this one stands for.

[override] void QUnhandledException::raise() const

Reimplements QException::raise().

Throws a copy of this exception.

See also clone().