public static <T> CompletableFuture<T> getFailedFuture(Throwable throwable) {
		CompletableFuture<T> failedAttempt = new CompletableFuture<>();
		failedAttempt.completeExceptionally(throwable);
		return failedAttempt;
	}
public static < T > CompletableFuture < T > getFailedFuture ( Throwable throwable ) { CompletableFuture < T > failedAttempt = new CompletableFuture < > ( ) ; failedAttempt . completeExceptionally ( throwable ) ; return failedAttempt ; }
Returns a {@link CompletableFuture} that has failed with the exception
provided as argument.
@param throwable the exception to fail the future with.
@return The failed future.