T
- The type of result object that the operation producespublic interface SuccessOrErrorPromise<T> extends SuccessPromise<T>
Modifier and Type | Method and Description |
---|---|
SuccessPromise<T> |
onError(Action<? super Throwable> errorHandler)
Specifies the action to take if the an error occurs trying to produce the promised value.
|
then
SuccessPromise<T> onError(Action<? super Throwable> errorHandler)
errorHandler
- the action to take if an error occurs