Class Sneaky

java.lang.Object
org.jdbi.v3.core.internal.exceptions.Sneaky

public class Sneaky extends Object
  • Constructor Details

    • Sneaky

      private Sneaky()
  • Method Details

    • throwAnyway

      @CheckReturnValue @Nonnull public static DummyException throwAnyway(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 Throwable> E throwEvadingChecks(Throwable throwable) throws E
      Throws:
      E extends Throwable