spring-batch
spring-batch copied to clipboard
Update missing information about error handling in ChunkListener doc
related issue #4384
Motivation:
Chunk listeners are not designed to throw exceptions.
Exceptions must be handled in the implementation or the step will terminate.
This is mentioned in the javadoc of TerminateOnExceptionChunkListenerDelegate, but this class is private.
- We found that
ChunkListener
is designed to not throw exception, but this important details is missing onChunkLisnter
doc now, only on private classTerminateOnExceptionChunkListenerDelegate
.
Modification:
- Update missing information about error handling in
ChunkListener
doc
Result:
- Now user can easily know
ChunkListener
is designed to now throw exception or step will terminate by javadoc - Close #4384