Interface ItemWriteListener<S>

    • Method Detail

      • onWriteError

        void onWriteError​(java.lang.Exception exception,
                          java.util.List<? extends S> items)
        Called if an error occurs while trying to write. Will be called inside a transaction, but the transaction will normally be rolled back. There is no way to identify from this callback which of the items (if any) caused the error.
        Parameters:
        exception - thrown from ItemWriter
        items - attempted to be written.