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
See Implementation
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