final class NoopRowProcessorErrorHandler extends java.lang.Object implements RowProcessorErrorHandler
RowProcessorErrorHandler
that simply rethrows any DataProcessingException
that comes into its handleError(DataProcessingException, Object[], ParsingContext)
methodRowProcessorErrorHandler
Modifier and Type | Field and Description |
---|---|
static RowProcessorErrorHandler |
instance |
Modifier | Constructor and Description |
---|---|
private |
NoopRowProcessorErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleError(DataProcessingException error,
java.lang.Object[] inputRow,
ParsingContext context)
Rethrows the
DataProcessingException |
public static final RowProcessorErrorHandler instance
public void handleError(DataProcessingException error, java.lang.Object[] inputRow, ParsingContext context)
DataProcessingException
handleError
in interface ProcessorErrorHandler<ParsingContext>
error
- the exception thrown during the processing an input record. Rethrow the error to abort the parsing process.
When parsing, you can also invoke Context.stop()
to stop the parser silently.inputRow
- the record that could not be processed. When writing, the original input object (i.e. null
, java bean or object array) will be sent by the writer.context
- the parsing context with information about the state of the parser at the time the error occurred. Will be null when writing.