Promise.except

Registers a rejection handler. Equivalent to then(null, onRejected). Similar to the catch method in JavaScript promises.

class Promise(T, E : Throwable = Exception)
Promise!(R, F)
except
(
R
F = E
)
(
R delegate
(
E
)
onRejected
)

Meta