Interface ThrowableRunnable<E extends java.lang.Throwable>
-
- Type Parameters:
E- The type of exception thisRunnableis expected to throw.
- All Superinterfaces:
java.lang.Runnable
- 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 ThrowableRunnable<E extends java.lang.Throwable> extends java.lang.RunnableSimple hack to add checked error support to aRunnables. It is mainly used in conjunction withUtilities.runnableHandling(ThrowableRunnable, Consumer)to achieve error handling within aRunnable.- Author:
- Collin Alpert
- See Also:
Runnable