Package com.chutneytesting.tools
Interface ThrowingConsumer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoidstatic <T> Consumer<T>silence(ThrowingConsumer<T> throwingConsumer, Consumer<Exception> exceptionHandler) static <T> Consumer<T>toUnchecked(ThrowingConsumer<T> throwingConsumer)
-
Method Details
-
accept
- Throws:
Exception
-
toUnchecked
- Throws:
UncheckedException- if givenThrowingFunctionthrows
-
silence
static <T> Consumer<T> silence(ThrowingConsumer<T> throwingConsumer, Consumer<Exception> exceptionHandler)
-