Class DefaultExceptionHandler
- java.lang.Object
- org.springframework.batch.repeat.exception.DefaultExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
public class DefaultExceptionHandler extends java.lang.Object implements ExceptionHandler
Default implementation ofExceptionHandler
- just re-throws the exception it encounters.- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description DefaultExceptionHandler()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleException(RepeatContext context, java.lang.Throwable throwable)
Re-throw the throwable.
Method Detail
handleException
public void handleException(RepeatContext context, java.lang.Throwable throwable) throws java.lang.Throwable
Re-throw the throwable.- Specified by:
handleException
in interfaceExceptionHandler
- Parameters:
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.- Throws:
java.lang.Throwable
- implementations are free to re-throw the exception- See Also:
ExceptionHandler.handleException(RepeatContext, Throwable)