vertx / io.vertx.junit5 / VertxTestContext / failing

# failing

`fun <T : Any> failing(): Handler<AsyncResult<T>>`

Create an asynchronous result handler that expects a failure.

### Parameters

`` - 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.

### Parameters

`nextHandler` - the exception handler to call on failure.

`` - the asynchronous result type.

Return
the handler.