Interface FailableConsumer<T,E extends Exception>
- Type Parameters:
T- the type of results supplied by this supplierE- the type of the exception thrown by the supplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a consumer of arguments which can throw exceptions.
- Since:
- 4.1.19
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms this operation on the given argument.wrapper(FailableConsumer<T, E> consumer) Wrapper responsible for converting a certainFailableConsumerinto aConsumer.
-
Method Details
-
accept
Performs this operation on the given argument.- Parameters:
t- the input argument- Throws:
E
-
wrapper
Wrapper responsible for converting a certainFailableConsumerinto aConsumer.- Type Parameters:
T- the type of results supplied by this consumerE- the type of the exception thrown by the consumer- Parameters:
consumer- The consumer function to be converted.- Returns:
- The build
Supplier.
-