Class LaunderThrowable


  • public class LaunderThrowable
    extends Object
    • Constructor Detail

      • LaunderThrowable

        public LaunderThrowable()
    • Method Detail

      • await

        public static <T> T await​(CompletableFuture<T> f)
        Performs a get() on the asynchronous method. Launders both Interrupted and Execution exception to business exception
        Parameters:
        f - The CompletableFuture to block on.
      • launder

        public static RuntimeException launder​(Throwable t)
        Launders both Interrupted and Execution exception into business exception