Package com.univocity.parsers.common
Class NoopRowProcessorErrorHandler
- java.lang.Object
-
- com.univocity.parsers.common.NoopRowProcessorErrorHandler
-
- All Implemented Interfaces:
ProcessorErrorHandler<ParsingContext>,RowProcessorErrorHandler
final class NoopRowProcessorErrorHandler extends java.lang.Object implements RowProcessorErrorHandler
An (singleton) implementation ofRowProcessorErrorHandlerthat simply rethrows anyDataProcessingExceptionthat comes into itshandleError(DataProcessingException, Object[], ParsingContext)method- See Also:
RowProcessorErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description static RowProcessorErrorHandlerinstance
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopRowProcessorErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleError(DataProcessingException error, java.lang.Object[] inputRow, ParsingContext context)Rethrows theDataProcessingException
-
-
-
Field Detail
-
instance
public static final RowProcessorErrorHandler instance
-
-
Method Detail
-
handleError
public void handleError(DataProcessingException error, java.lang.Object[] inputRow, ParsingContext context)
Rethrows theDataProcessingException- Specified by:
handleErrorin interfaceProcessorErrorHandler<ParsingContext>- Parameters:
error- the exception thrown during the processing an input record. Rethrow the error to abort the parsing process. When parsing, you can also invokeContext.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.
-
-