Annotation Interface OnWriteError


@Retention(RUNTIME) @Target(METHOD) public @interface OnWriteError
Marks a method to be called if an exception is thrown by an ItemWriter. Note that this annotation takes a Chunk because Spring Batch generally processes a group of items (for the sake of efficiency).

Expected signature: void onWriteError(Exception exception, Chunk<? extends S> items)
Since:
2.0
Author:
Lucas Ward, Mahmoud Ben Hassine
See Also: