类 CompositeExceptionHandler
- java.lang.Object
- org.springframework.batch.repeat.exception.CompositeExceptionHandler
- 所有已实现的接口:
ExceptionHandler
public class CompositeExceptionHandler extends java.lang.Object implements ExceptionHandler
CompositeExceptionHandlerthat loops though a list of delegates.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 CompositeExceptionHandler()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidhandleException(RepeatContext context, java.lang.Throwable throwable)Iterate over the handlers delegating the call to each in turn.voidsetHandlers(ExceptionHandler[] handlers)
构造器详细资料
CompositeExceptionHandler
public CompositeExceptionHandler()
方法详细资料
setHandlers
public void setHandlers(ExceptionHandler[] handlers)
handleException
public void handleException(RepeatContext context, java.lang.Throwable throwable) throws java.lang.Throwable
Iterate over the handlers delegating the call to each in turn. The chain ends if an exception is thrown.- 指定者:
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- 另请参阅:
ExceptionHandler.handleException(RepeatContext, Throwable)