public class FutureUtils extends Object
Java Futures
.Constructor and Description |
---|
FutureUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> CompletableFuture<T> |
getFailedFuture(Throwable throwable)
Returns a
CompletableFuture that has failed with the exception provided as argument. |
public static <T> CompletableFuture<T> getFailedFuture(Throwable throwable)
CompletableFuture
that has failed with the exception provided as argument.throwable
- the exception to fail the future with.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.