Interface ThrowingRunnable<E extends Throwable>

Type Parameters:
E - the type of Throwable that may be thrown by this runnable
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<E extends Throwable>
Represents an operation that may throw.

Like Runnable but able to throw an exception

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Performs this operation.
  • Method Details

    • run

      void run() throws E
      Performs this operation.
      Throws:
      E - Throwable that may be thrown
      See Also: