Package utility.function
Interface ExceptionalCallback<E extends Throwable>
- Type Parameters:
E
- the exception of your choice
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A generic functional interface that is more semantically sound than
Runnable
. Use
anywhere you wish to have a generic callback function and you need to throw an exception.-
Method Summary
-
Method Details
-
call
void call() throws EThe method that will be called- Throws:
E
- if the call throws an exception
-