Class Rethrow


  • public final class Rethrow
    extends java.lang.Object
    Rethrowing checked exceptions as unchecked ones. Eh, it is sometimes useful...
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  Rethrow.Rethrower<T extends java.lang.Throwable>
      Classy puzzler to rethrow any checked exception as an unchecked one.
    • Constructor Summary

      Constructors 
      Constructor Description
      Rethrow()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.RuntimeException rethrow​(java.lang.Throwable t)
      Rethrows t (identical object).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rethrow

        public Rethrow()
    • Method Detail

      • rethrow

        public static java.lang.RuntimeException rethrow​(java.lang.Throwable t)
        Rethrows t (identical object).