Package com.helger.commons.callback
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.
A simple interface that looks like
Note: It is not possible to extend
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
-
Method Details
-
run
void run() throws EXTYPERun it.- Throws:
EXTYPE- In case something goes wrong.
-