Class UncheckedThrow

java.lang.Object
org.apache.groovy.internal.util.UncheckedThrow

@Incubating public class UncheckedThrow extends Object
Allows to throw a checked exception unchecked. INTERNAL USE ONLY.
  • Constructor Details

    • UncheckedThrow

      public UncheckedThrow()
  • Method Details

    • rethrow

      public static void rethrow(Throwable checkedException)
      Throws checkedException without wrapping it, so a checked exception can leave a method that does not declare it. A null argument is thrown as NullPointerException.
      Parameters:
      checkedException - throwable to rethrow