Class DefaultExceptionHandler
java.lang.Object
org.springframework.batch.repeat.exception.DefaultExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
Default implementation of
ExceptionHandler
- just re-throws the exception it encounters.- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleException
(RepeatContext context, Throwable throwable) Re-throw the throwable.
-
Constructor Details
-
DefaultExceptionHandler
public DefaultExceptionHandler()
-
-
Method Details
-
handleException
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:
Throwable
- implementations are free to re-throw the exception- See Also:
-