Module org.jooq

Class ExceptionTools

java.lang.Object
org.jooq.exception.ExceptionTools

public final class ExceptionTools extends Object
Author:
Lukas Eder
  • Method Details

    • getCause

      @Nullable public static <T extends Throwable> T getCause(Throwable t, Class<? extends T> type)
      Find a root cause of a given type, or null if no root cause of that type was found.
    • sneakyThrow

      public static void sneakyThrow(Throwable throwable)
      Sneaky throw any type of Throwable.