Class Sneaky


  • public class Sneaky
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Sneaky()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.RuntimeException throwAnyway​(java.lang.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.
      private static <E extends java.lang.Throwable>
      void
      throwEvadingChecks​(java.lang.Throwable throwable)  
      • Methods inherited from class java.lang.Object

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

      • Sneaky

        private Sneaky()
    • Method Detail

      • throwAnyway

        public static java.lang.RuntimeException throwAnyway​(java.lang.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 java.lang.Throwable> void throwEvadingChecks​(java.lang.Throwable throwable)
                                                                        throws E extends java.lang.Throwable
        Throws:
        E extends java.lang.Throwable