Package | Description |
---|---|
com.univocity.parsers.common |
Modifier and Type | Interface and Description |
---|---|
interface |
RowProcessorErrorHandler
The
RowProcessorErrorHandler is a callback used by the parser/writer to handle non-fatal DataProcessingException s that may occur when
processing rows using a RowProcessor or RowWriterProcessor . |
Modifier and Type | Class and Description |
---|---|
class |
NoopProcessorErrorHandler<T extends Context>
An (singleton) implementation of
ProcessorErrorHandler that simply rethrows any DataProcessingException
that comes into its NoopProcessorErrorHandler.handleError(DataProcessingException, Object[], Context) } method |
class |
RetryableErrorHandler<T extends Context>
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 RetryableErrorHandler.setDefaultValue(Object) . |
Modifier and Type | Field and Description |
---|---|
static ProcessorErrorHandler |
NoopProcessorErrorHandler.instance |
Modifier and Type | Method and Description |
---|---|
<T extends Context> |
CommonSettings.getProcessorErrorHandler()
Returns the custom error handler to be used to capture and handle errors that might happen while processing records with a
Processor
or a RowWriterProcessor (i.e. |
Modifier and Type | Method and Description |
---|---|
void |
DataProcessingException.markAsHandled(ProcessorErrorHandler handler)
Marks the error as handled so it doesn't trigger a
ProcessorErrorHandler again. |
void |
CommonSettings.setProcessorErrorHandler(ProcessorErrorHandler<? extends Context> processorErrorHandler)
Defines a custom error handler to capture and handle errors that might happen while processing records with a
Processor
or a RowWriterProcessor (i.e. |
Copyright © 2020 uniVocity Software Pty Ltd. All rights reserved.