Interface RunnableWithException

  • All Superinterfaces:
    ThrowingRunnable<Exception>
    All Known Implementing Classes:
    FutureTaskWithException
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Public
    @FunctionalInterface
    public interface RunnableWithException
    extends ThrowingRunnable<Exception>
    Similar to a Runnable, this interface is used to capture a block of code to be executed. In contrast to Runnable, this interface allows throwing checked exceptions.