Class Rethrow


  • public final class Rethrow
    extends Object
    Sneaky: rethrowing checked exceptions as unchecked ones. Eh, it is sometimes useful...

    Pulled from http://www.javapuzzlers.com (I think?).

    • Constructor Detail

      • Rethrow

        public Rethrow()
    • Method Detail

      • rethrow

        public static void rethrow​(Throwable t)
        Rethrows t (identical object).