com.univocity.parsers.common
Interface RowProcessorErrorHandler

All Superinterfaces:
ProcessorErrorHandler<ParsingContext>

public interface RowProcessorErrorHandler
extends ProcessorErrorHandler<ParsingContext>

The RowProcessorErrorHandler is a callback used by the parser/writer to handle non-fatal DataProcessingExceptions that may occur when processing rows using a RowProcessor or RowWriterProcessor. This leaves the responsibility of error handling to the user. If the user does not rethrow the DataProcessingException, the parsing/writing process won't stop and will proceed normally.

This error handler WILL NOT handle TextParsingExceptions or other errors that prevent the parser to reliably extract rows from a given input, or the writer to proceed writing data.

When parsing, the ProcessorErrorHandler.handleError(DataProcessingException, Object[], Context) method will be called only when a valid record has been parsed, but the subsequent processing executed by a RowProcessor fails.

When writing, the ProcessorErrorHandler.handleError(DataProcessingException, Object[], Context) method will be called only when a using the AbstractWriter.processRecord(Object) methods, and RowWriterProcessor fails to execute.

Author:
uniVocity Software Pty Ltd - parsers@univocity.com
See Also:
RowProcessor, RowWriterProcessor, DataProcessingException, TextParsingException, AbstractParser, AbstractWriter, CommonSettings

Method Summary
 
Methods inherited from interface com.univocity.parsers.common.ProcessorErrorHandler
handleError
 



Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.