Class RetryableErrorHandler<T extends Context>

java.lang.Object
com.univocity.parsers.common.RetryableErrorHandler<T>
All Implemented Interfaces:
ProcessorErrorHandler<T>

public abstract class RetryableErrorHandler<T extends Context> extends Object implements ProcessorErrorHandler<T>
A ProcessorErrorHandler implementation that gives the user a chance to provide a default value for columns that could not be processed due to an exception, through the method setDefaultValue(Object). This must be called from within the implementation of the ProcessorErrorHandler.handleError(DataProcessingException, Object[], Context) method, and will prevent the record from being discarded. The value provided by the user will be assigned to the problematic input row, at the column defined by DataProcessingException.getColumnIndex(). NOTE:If the column index is < 0, then the record can't be salvaged and it will be discarded regardless of the user calling setDefaultValue(Object) or not.
See Also: