Interface FailableRunnable<E extends Throwable>

Type Parameters:
E - The kind of Throwable.
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 Throwable>
A functional interface like Runnable that declares a kind of Throwable.
Since:
3.11
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Runs the function.
  • Method Details

    • run

      void run() throws E
      Runs the function.
      Throws:
      E - Thrown when the function fails.