QUnhandledException Class
The QUnhandledException class represents an unhandled exception in a worker thread. More…
| Header | #include <QUnhandledException> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
| Inherits | QException |
List of all members, including inherited members
Public Functions
| QUnhandledException(std::exception_ptr exception = std::current_exception()) | |
| QUnhandledException(const QUnhandledException &other) | |
| ~QUnhandledException() | |
| std::exception_ptr | exception() const |
Reimplemented Public Functions
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.
QUnhandledException::~QUnhandledException()
Destroys the exception.
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.
void QUnhandledException::raise() const
Reimplements QException::raise().
Throws a copy of this exception.
See also clone().