- Type Parameters:
T - the type consumed
- All Superinterfaces:
Consumer<T>
public interface CheckedConsumer<T>
extends Consumer<T>
A consumer interface that automatically wraps any exceptions.
- Author:
- Ramsey Gurley
-
Method Summary
default void
void
Same as
accept
except Exceptions may be thrown.
-
Method Details
-
-
accepts
Same as
accept
except Exceptions may be thrown.
- Parameters:
t - the accepted type
- Throws:
Exception - an exception