# QPromiseContextException

Since: 0.5.0

When a promise is created using QtPromise::connect(), this exception is thrown when the sender object is destroyed, for example:

auto promise = QtPromise::connect(sender, &Object::finished, &Object::error);

promise.fail([](const QPromiseContextException&) {
    // 'sender' has been destroyed.
})
Last Updated: 12/21/2019, 9:27:26 AM