fun <T : Any> failing(): Handler<AsyncResult<T>>
Create an asynchronous result handler that expects a failure.
- the asynchronous result type.
Return
the handler.
fun <T : Any> failing(nextHandler: Handler<Throwable>): Handler<AsyncResult<T>>
Create an asynchronous result handler that expects a failure, and passes the exception to another handler.
nextHandler - the exception handler to call on failure.
- the asynchronous result type.
Return
the handler.