public class FootballExceptionHandler extends java.lang.Object implements ExceptionHandler
| Constructor and Description |
|---|
FootballExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleException(RepeatContext context,
java.lang.Throwable throwable)
Deal with a Throwable during a batch - decide whether it should be
re-thrown in the first place.
|
public void handleException(RepeatContext context, java.lang.Throwable throwable) throws java.lang.Throwable
ExceptionHandlerhandleException in interface ExceptionHandlercontext - the current RepeatContext. Can be used to store
state (via attributes), for example to count the number of occurrences of
a particular exception type and implement a threshold policy.throwable - an exception.java.lang.Throwable - implementations are free to re-throw the exception