Uses of Interface
com.univocity.parsers.common.ProcessorErrorHandler
-
Packages that use ProcessorErrorHandler Package Description com.univocity.parsers.common -
-
Uses of ProcessorErrorHandler in com.univocity.parsers.common
Subinterfaces of ProcessorErrorHandler in com.univocity.parsers.common Modifier and Type Interface Description interface
RowProcessorErrorHandler
TheRowProcessorErrorHandler
is a callback used by the parser/writer to handle non-fatalDataProcessingException
s that may occur when processing rows using aRowProcessor
orRowWriterProcessor
.Classes in com.univocity.parsers.common that implement ProcessorErrorHandler Modifier and Type Class Description class
NoopProcessorErrorHandler<T extends Context>
An (singleton) implementation ofProcessorErrorHandler
that simply rethrows anyDataProcessingException
that comes into itsNoopProcessorErrorHandler.handleError(DataProcessingException, Object[], Context)
} method(package private) class
NoopRowProcessorErrorHandler
An (singleton) implementation ofRowProcessorErrorHandler
that simply rethrows anyDataProcessingException
that comes into itsNoopRowProcessorErrorHandler.handleError(DataProcessingException, Object[], ParsingContext)
methodclass
RetryableErrorHandler<T extends Context>
AProcessorErrorHandler
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 methodRetryableErrorHandler.setDefaultValue(Object)
.Fields in com.univocity.parsers.common declared as ProcessorErrorHandler Modifier and Type Field Description private ProcessorErrorHandler
AbstractParser. errorHandler
private ProcessorErrorHandler<? extends Context>
CommonSettings. errorHandler
(package private) ProcessorErrorHandler
DefaultConversionProcessor. errorHandler
static ProcessorErrorHandler
NoopProcessorErrorHandler. instance
Methods in com.univocity.parsers.common that return ProcessorErrorHandler Modifier and Type Method Description <T extends Context>
ProcessorErrorHandler<T>CommonSettings. getProcessorErrorHandler()
Returns the custom error handler to be used to capture and handle errors that might happen while processing records with aProcessor
or aRowWriterProcessor
(i.e.Methods in com.univocity.parsers.common with parameters of type ProcessorErrorHandler Modifier and Type Method Description void
DataProcessingException. markAsHandled(ProcessorErrorHandler handler)
Marks the error as handled so it doesn't trigger aProcessorErrorHandler
again.static <C extends Context>
voidInternal. process(java.lang.String[] row, Processor<C> processor, C context, ProcessorErrorHandler<C> errorHandler)
void
CommonSettings. setProcessorErrorHandler(ProcessorErrorHandler<? extends Context> processorErrorHandler)
Defines a custom error handler to capture and handle errors that might happen while processing records with aProcessor
or aRowWriterProcessor
(i.e.
-