Package utility.function
Interface ExceptionalCallback<E extends java.lang.Exception>
-
- 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.
@FunctionalInterface public interface ExceptionalCallback<E extends java.lang.Exception>
A generic functional interface that is more semantically sound thanRunnable
. Use anywhere you wish to have a generic callback function and you need to throw an exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
call()
The method that will be called
-
-
-
Method Detail
-
call
void call() throws E extends java.lang.Exception
The method that will be called- Throws:
java.lang.Exception
- if the call throws an exception
-
-