T - the type of the input to the operationE - the type of the exception@FunctionalInterface
public interface ThrowableConsumer<T,E extends java.lang.Throwable>
ThrowableConsumer can handle checked exceptions| Modifier and Type | Method and Description |
|---|---|
void |
accept(T object)
Performs this operation on the given argument.
|