Package aQute.lib.exceptions
Interface ConsumerWithException<T>
- Type Parameters:
T
- the type of the argument
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumer interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T> Consumer<T>
asConsumer
(ConsumerWithException<T> unchecked) static <T> Consumer<T>
asConsumerIgnoreException
(ConsumerWithException<T> unchecked)
-
Method Details
-
accept
- Throws:
Exception
-
orElseThrow
-
ignoreException
-
asConsumer
-
asConsumerIgnoreException
-