Class CheckedExceptionRethrower


  • public class CheckedExceptionRethrower
    extends java.lang.Object
    This is an internal class and should NOT be used outside of Awaitility! Use it at own risk (please don't :)).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T safeRethrow​(java.lang.Throwable t)
      safeRethrow.
      private static <T extends java.lang.Throwable>
      void
      safeRethrow0​(java.lang.Throwable t)  
      • Methods inherited from class java.lang.Object

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

      • CheckedExceptionRethrower

        public CheckedExceptionRethrower()
    • Method Detail

      • safeRethrow

        public static <T> T safeRethrow​(java.lang.Throwable t)

        safeRethrow.

        Type Parameters:
        T - a T object.
        Parameters:
        t - a Throwable object.
        Returns:
        a T object.
      • safeRethrow0

        private static <T extends java.lang.Throwable> void safeRethrow0​(java.lang.Throwable t)
                                                                  throws T extends java.lang.Throwable
        Throws:
        T extends java.lang.Throwable