# QPromiseCanceledException

Since: 0.1.0

This exception is thrown for promise created from a QFuture which has been canceled (e.g. using QFuture::cancel() (opens new window)), for example:

auto output = QtPromise::resolve(future)
    .fail([](const QPromiseCanceledException& error) {
        // `future` has been canceled!
    });

NOTE

QtPromise doesn't support promise cancelation (yet?)