Interface FailableRunnable<E extends Exception>

  • Type Parameters:
    E - The exception type
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface FailableRunnable<E extends Exception>
    A runnable that may fail with a checked exception during the execution of the run() method.
    Author:
    Eyal Schneider
    • Method Detail

      • run

        void run()
          throws E extends Exception
        Runs the runnable's task
        Throws:
        E - indicating an error while executing the runnable
        E extends Exception