Class Sneaky
- java.lang.Object
-
- org.jdbi.v3.core.internal.exceptions.Sneaky
-
public class Sneaky extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSneaky()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DummyExceptionthrowAnyway(java.lang.Throwable t)Will always throw an exception, so the caller should also always throw the dummy return value to make sure the control flow remains clear.private static <E extends java.lang.Throwable>
EthrowEvadingChecks(java.lang.Throwable throwable)
-
-
-
Method Detail
-
throwAnyway
@CheckReturnValue @Nonnull public static DummyException throwAnyway(java.lang.Throwable t)
Will always throw an exception, so the caller should also always throw the dummy return value to make sure the control flow remains clear.
-
throwEvadingChecks
private static <E extends java.lang.Throwable> E throwEvadingChecks(java.lang.Throwable throwable) throws E extends java.lang.Throwable- Throws:
E extends java.lang.Throwable
-
-