CopperSpice API  1.9.1
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

When inheriting from QtConcurrent::Exception you must reimplement clone().

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

Reimplemented from QtConcurrent::Exception::clone()

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

When inheriting from QtConcurrent::Exception you must reimplement raise().

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

Reimplemented from QtConcurrent::Exception::raise()