Top Description Fields Constructors Methods
com.univocity.parsers.common

pack-priv final Class NoopRowProcessorErrorHandler

extends Object
implements RowProcessorErrorHandler
Class Inheritance
All Implemented Interfaces
com.univocity.parsers.common.RowProcessorErrorHandler, com.univocity.parsers.common.ProcessorErrorHandler

An (singleton) implementation of RowProcessorErrorHandler that simply rethrows any DataProcessingException that comes into its handleError(DataProcessingException, Object[], ParsingContext) method
Author
Univocity Software Pty Ltd - [email protected]
See Also
RowProcessorErrorHandler

Field Summary

Modifier and TypeField and Description
public static final RowProcessorErrorHandler

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
handleError(DataProcessingException
the exception thrown during the processing an input record. Rethrow the error to abort the parsing process. When parsing, you can also invoke ParsingContext#stop() to stop the parser silently.
error
,
Object[]
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.
inputRow
,
ParsingContext
the parsing context with information about the state of the parser at the time the error occurred. Will be null when writing.
context
)

Implements com.univocity.parsers.common.ProcessorErrorHandler.handleError.

Rethrows the DataProcessingException
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
public static final RowProcessorErrorHandler instance

Constructor Detail

NoopRowProcessorErrorHandlerback to summary
private NoopRowProcessorErrorHandler()

Method Detail

handleErrorback to summary
public void handleError(DataProcessingException error, Object[] inputRow, ParsingContext context)

Implements com.univocity.parsers.common.ProcessorErrorHandler.handleError.

Rethrows the DataProcessingException

Parameters
error:DataProcessingException

Doc from com.univocity.parsers.common.ProcessorErrorHandler.handleError.

the exception thrown during the processing an input record. Rethrow the error to abort the parsing process. When parsing, you can also invoke ParsingContext#stop() to stop the parser silently.

inputRow:Object[]

Doc from com.univocity.parsers.common.ProcessorErrorHandler.handleError.

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:ParsingContext

Doc from com.univocity.parsers.common.ProcessorErrorHandler.handleError.

the parsing context with information about the state of the parser at the time the error occurred. Will be null when writing.

Annotations
@Override