Package com.algolia.exceptions
Class LaunderThrowable
java.lang.Object
com.algolia.exceptions.LaunderThrowable
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
await
(CompletableFuture<T> f) Performs a get() on the asynchronous method.static AlgoliaRuntimeException
Launders both Interrupted and Execution exception into business exception
-
Method Details
-
await
Performs a get() on the asynchronous method. Launders both Interrupted and Execution exception to business exception- Parameters:
f
- The CompletableFuture to block on.
-
launder
Launders both Interrupted and Execution exception into business exception
-