Package org.wildfly.common.function
Interface ExceptionRunnable<E extends Exception>
public interface ExceptionRunnable<E extends Exception>
An operation that can throw an exception.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExceptionRunnable<E>andThen(ExceptionRunnable<? extends E> after) default ExceptionRunnable<E>compose(ExceptionRunnable<? extends E> before) voidrun()Run the operation.
-
Method Details
-
run
Run the operation.- Throws:
E- if an exception occurs
-
andThen
-
compose
-