Interface ThrowingRunnable<T extends Throwable>

  • Type Parameters:
    T - the type of the exception the accept method may throw
    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 ThrowingRunnable<T extends Throwable>
    Represents a Runnable like interface that may thrown an exception.
    See Also:
    Runnable
    • Method Detail

      • run

        void run()
          throws T extends Throwable
        Execute an action, potentially throwing an exception.
        Throws:
        T - the exception that may be thrown
        T extends Throwable