Interface CheckedRunnable<E extends Exception>
- Type Parameters:
E- exception-type ifrun()fails.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like
Runnable but can also throw an exception.- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
run
void run() throws ERuns an operation like withRunnable.run().- Throws:
E- an exception that may be thrown if the operation cannot complete successfully.
-