Interface Try.ThrowingRunnable

Enclosing class:
Try<T>
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 static interface Try.ThrowingRunnable
A functional interface for a runnable task that may throw a checked or unchecked exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Executes the task.
  • Method Details

    • run

      void run() throws Throwable
      Executes the task.
      Throws:
      Throwable - If the task execution fails.