Top Description Methods
jakarta.batch.api.chunk.listener

public Interface SkipProcessListener


SkipProcessListener intercepts skippable itemProcess exception handling.

Method Summary

Modifier and TypeMethod and Description
public void
onSkipProcessItem(Object
specifies the item passed to the ItemProcessor.
item
,
Exception
specifies the exception thrown by the ItemProcessor.
ex
)

The onSkipProcessItem method receives control when a skippable exception is thrown from an ItemProcess processItem method.

Method Detail

onSkipProcessItemback to summary
public void onSkipProcessItem(Object item, Exception ex) throws Exception

The onSkipProcessItem method receives control when a skippable exception is thrown from an ItemProcess processItem method. This method receives the exception and the item to process as an input.

Parameters
item:Object

specifies the item passed to the ItemProcessor.

ex:Exception

specifies the exception thrown by the ItemProcessor.

Exceptions
Exception:
is thrown if an error occurs.