org.springframework.batch.sample.domain.football.internal
Class FootballExceptionHandler
java.lang.Object
org.springframework.batch.sample.domain.football.internal.FootballExceptionHandler
- All Implemented Interfaces:
- ExceptionHandler
public class FootballExceptionHandler
- extends Object
- implements ExceptionHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FootballExceptionHandler
public FootballExceptionHandler()
handleException
public void handleException(RepeatContext context,
Throwable throwable)
throws Throwable
- Description copied from interface:
ExceptionHandler
- Deal with a Throwable during a batch - decide whether it should be
re-thrown in the first place.
- Specified by:
handleException
in interface ExceptionHandler
- Parameters:
context
- 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.
- Throws:
Throwable
- implementations are free to re-throw the exception
Copyright © 2009 SpringSource. All Rights Reserved.