类 FootballExceptionHandler
- java.lang.Object
- org.springframework.batch.sample.domain.football.internal.FootballExceptionHandler
- 所有已实现的接口:
ExceptionHandler
public class FootballExceptionHandler extends java.lang.Object implements ExceptionHandler
构造器概要
构造器 构造器 说明 FootballExceptionHandler()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidhandleException(RepeatContext context, java.lang.Throwable throwable)Deal with a Throwable during a batch - decide whether it should be re-thrown in the first place.
构造器详细资料
FootballExceptionHandler
public FootballExceptionHandler()
方法详细资料
handleException
public void handleException(RepeatContext context, java.lang.Throwable throwable) throws java.lang.Throwable
从接口复制的说明:ExceptionHandlerDeal with a Throwable during a batch - decide whether it should be re-thrown in the first place.- 指定者:
handleException在接口中ExceptionHandler- 参数:
context- the currentRepeatContext. 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