@FunctionalInterface public interface ExceptionHandler
| Modifier and Type | Method and Description |
|---|---|
void |
handleException(Loop loop,
Step step,
java.lang.Throwable throwable)
Handles an unexpected exception that was thrown by the given
step that is part of the given loop. |
default boolean |
performQuietly(Loop loop,
Step step)
Performs the step's method handling possible exceptions by invoking this handler's
handleException(Loop, Step, Throwable) method. |
void handleException(Loop loop, Step step, java.lang.Throwable throwable)
step that is part of the given loop.loop - the loop which the failed step is part ofstep - the step that throws the specified exceptionthrowable - the exception thrown by stepdefault boolean performQuietly(Loop loop, Step step)
Performs the step's method handling possible exceptions by invoking this handler's
handleException(Loop, Step, Throwable) method.loop - the loop to which the step belongsstep - the step to perform