Package com.identityworksllc.iiq.common
Interface Functions.ConsumerWithError<T>
-
- All Superinterfaces:
Consumer<T>
- All Known Subinterfaces:
Functions.GenericCallback
- Enclosing class:
- Functions
public static interface Functions.ConsumerWithError<T> extends Consumer<T>
An extension of Consumer that allows functional code to throw an exception.If used in a context not expecting this class, the error will be caught, logged, and re-thrown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(T a)
void
acceptWithError(T t)
default Functions.ConsumerWithError<T>
andThen(Consumer<? super T> after)
-
-
-
Method Detail
-
acceptWithError
void acceptWithError(T t) throws Throwable
- Throws:
Throwable
-
-