public class LaunderThrowable extends Object
| Constructor and Description |
|---|
LaunderThrowable() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
await(CompletableFuture<T> f)
Performs a get() on the asynchronous method.
|
static RuntimeException |
launder(Throwable t)
Launders both Interrupted and Execution exception into business exception
|
public static <T> T await(CompletableFuture<T> f)
f - The CompletableFuture to block on.public static RuntimeException launder(Throwable t)
Copyright © 2019. All rights reserved.