CopperSpice API  1.7.2
QtConcurrent::UnhandledException Class Reference

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

Inheritance diagram for QtConcurrent::UnhandledException:
QtConcurrent::Exception

Public Methods

Exceptionclone () const override
 
void raise () const override
 

Detailed Description

The UnhandledException class represents an unhandled exception in a worker thread.

If a worker thread throws an exception that is not a subclass of QtConcurrent::Exception, the Concurrent functions will throw a QtConcurrent::UnhandledException on the receiver thread side.

Inheriting from this class is not supported.

Method Documentation

Exception* QtConcurrent::UnhandledException::clone ( ) const
overridevirtual

In your QtConcurrent::Exception subclass, reimplement clone() like this:

MyException *MyException::clone() const { return new MyException(*this); }

Reimplemented from QtConcurrent::Exception.

void QtConcurrent::UnhandledException::raise ( ) const
overridevirtual

In your QtConcurrent::Exception subclass, reimplement raise() like this:

void MyException::raise() const { throw *this; }

Reimplemented from QtConcurrent::Exception.