failedFuture

Returns a new CompletableFuture that is already completed exceptionally with the given exception.

@param ex the exception @param <U> the type of the value @return the exceptionally completed CompletableFuture

failedFuture
(
U
)
(
Throwable ex
)

Meta