Class Rethrow

java.lang.Object
org.apache.lucene.tests.util.Rethrow

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

Pulled from Java Puzzlers.

See Also:
  • Method Details

    • rethrow

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