Top Fields Constructors Methods
org.jooq.exception

public final Class ExceptionTools

extends Object
Class Inheritance
Imports
org.jetbrains.annotations.Nullable

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static int
maxCauseLookups

Never run infinite loops

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
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.

public static void
sneakyThrow(Throwable throwable)

Sneaky throw any type of Throwable.

private static <E extends Throwable> void
sneakyThrow0(Throwable throwable)

Sneaky throw any type of Throwable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxCauseLookupsback to summary
private static int maxCauseLookups

Never run infinite loops

Constructor Detail

ExceptionToolsback to summary
private ExceptionTools()

Method Detail

getCauseback to summary
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.

Annotations
@SuppressWarnings:unchecked
@Nullable
sneakyThrowback to summary
public static void sneakyThrow(Throwable throwable)

Sneaky throw any type of Throwable.

sneakyThrow0back to summary
private static <E extends Throwable> void sneakyThrow0(Throwable throwable) throws Throwable-:E

Sneaky throw any type of Throwable.

Annotations
@SuppressWarnings:unchecked