Is there any listener interface that one could implement to handle exceptions thrown from ItemReader.open()
methods? There's plenty of listener interfaces but no one seems to be suitable for this.
i.e. ItemReadListener
catches only exceptions from ItemReader.readItem()
(similar to ChunkListener
or ItemProcessListener
etc.)
There are JobListener
and StepListener
interfaces but these two don't define methods that would be called in case of exception.
Is there any way how to do this?