Module org.jooq

Class ExceptionTools


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

      • getCause

        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.