Class LaunderThrowable

java.lang.Object
com.algolia.exceptions.LaunderThrowable

public class LaunderThrowable extends Object
  • Method Details

    • 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 AlgoliaRuntimeException launder(Throwable t)
      Launders both Interrupted and Execution exception into business exception