Interface IThrowingRunnable<EXTYPE extends Throwable>

Type Parameters:
EXTYPE - Exception type to be thrown
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 IThrowingRunnable<EXTYPE extends Throwable>
A simple interface that looks like Runnable but may throw an exception on its execution.
Note: It is not possible to extend Runnable directly, as derived interfaces are not allowed to add exception specifications.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Run it.
  • Method Details

    • run

      void run() throws EXTYPE
      Run it.
      Throws:
      EXTYPE - In case something goes wrong.