abstract fun exceptionally(fn: Function<Throwable!, out T>!): AsyncResult<T>!
(source)
Returns a new result that, when this result completes exceptionally, completes with the value obtained from executing the supplied function with this result's exception as an argument. Otherwise, if this result completes normally, then the returned result also completes normally with the same value.
fn
- Function<Throwable!, out T>!: The function to execute.
Return
AsyncResult<T>!: A new result.