Interface Try.CheckedRunnable

Enclosing interface:
Try<Value>
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.CheckedRunnable
Functional interface for runnables that can throw checked exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Executes an operation that may throw a checked exception.
  • Method Details

    • run

      void run() throws Exception
      Executes an operation that may throw a checked exception.

      This method is intended to provide a functional interface for use in scenarios where a runnable operation might need to handle checked exceptions.

      Throws:
      Exception - if an error occurs during execution