Class Exceptions

java.lang.Object
org.jobrunr.utils.exceptions.Exceptions

public class Exceptions extends Object
  • Constructor Details

    • Exceptions

      public Exceptions()
  • Method Details

    • hasCause

      public static boolean hasCause(Throwable t, Class<? extends Throwable> exceptionClass)
    • getStackTraceAsString

      public static String getStackTraceAsString(Throwable exception)
    • retryOnException

      public static <T> T retryOnException(Supplier<T> supplier, int maxRetries)
    • retryOnException

      public static void retryOnException(Runnable runnable, int maxRetries)