Interface ThrowingRunnable


  • public interface ThrowingRunnable
    This interface replaces Runnable in cases when execution of run() method may throw exception.

    Useful for capturing lambdas that throw exceptions.

    • Method Detail

      • run

        void run()
          throws java.lang.Throwable
        Throws:
        java.lang.Throwable - The exception that may be thrown
        See Also:
        Runnable.run()