Package org.nuxeo.common.function
Interface ThrowableConsumer<T,E extends Throwable>
- Type Parameters:
T
- the type of the input to the operationE
- the type of exception to throw
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 11.1
-
Method Summary
-
Method Details
-
accept
-
toConsumer
- Returns:
- this
ThrowableConsumer
as aConsumer
throwing the checked exception as an unchecked one
-
asConsumer
- Returns:
- the given
ThrowableConsumer
as aConsumer
throwing the checked exception as an unchecked one
-