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 List because Spring Batch generally processes a group of items (for the sake of efficiency).

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