Package org.assertj.core.api
Interface ThrowingConsumer<T>
- Type Parameters:
T
- consumed type
- All Superinterfaces:
Consumer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumer
that deals with checked exceptions by rethrowing them as RuntimeException
.
More precisely, RuntimeException
and AssertionError
are rethrown as they are while any other Throwable
are rethrown as RuntimeException
.
-
Method Summary