Package org.jooq.exception
Class ExceptionTools
- java.lang.Object
-
- org.jooq.exception.ExceptionTools
-
public final class ExceptionTools extends java.lang.Object
- Author:
- Lukas Eder
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.Throwable>
TgetCause(java.lang.Throwable t, java.lang.Class<? extends T> type)
Find a root cause of a given type, ornull
if no root cause of that type was found.static void
sneakyThrow(java.lang.Throwable throwable)
Sneaky throw any type of Throwable.
-
-
-
Method Detail
-
getCause
public static <T extends java.lang.Throwable> T getCause(java.lang.Throwable t, java.lang.Class<? extends T> type)
Find a root cause of a given type, ornull
if no root cause of that type was found.
-
sneakyThrow
public static void sneakyThrow(java.lang.Throwable throwable)
Sneaky throw any type of Throwable.
-
-