vertx / io.vertx.reactivex.core / Future / failedFuture

# failedFuture

`open static fun <T : Any> failedFuture(t: Throwable): Future<T>`

Create a failed future with the specified failure cause.

### Parameters

`t` - the failure cause as a Throwable

Return
the future

`open static fun <T : Any> failedFuture(failureMessage: String): Future<T>`

Create a failed future with the specified failure message.

### Parameters

`failureMessage` - the failure message

Return
the future