Package com.univocity.parsers.common
Class NoopProcessorErrorHandler<T extends Context>
- java.lang.Object
-
- com.univocity.parsers.common.NoopProcessorErrorHandler<T>
-
- Type Parameters:
T
- theContext
type provided by the parser implementation.
- All Implemented Interfaces:
ProcessorErrorHandler<T>
public final class NoopProcessorErrorHandler<T extends Context> extends java.lang.Object implements ProcessorErrorHandler<T>
An (singleton) implementation ofProcessorErrorHandler
that simply rethrows anyDataProcessingException
that comes into itshandleError(DataProcessingException, Object[], Context)
} method- See Also:
ProcessorErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description static ProcessorErrorHandler
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopProcessorErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleError(DataProcessingException error, java.lang.Object[] inputRow, T context)
Rethrows theDataProcessingException
-
-
-
Field Detail
-
instance
public static final ProcessorErrorHandler instance
-
-
Method Detail
-
handleError
public void handleError(DataProcessingException error, java.lang.Object[] inputRow, T context)
Rethrows theDataProcessingException
- Specified by:
handleError
in interfaceProcessorErrorHandler<T extends Context>
- Parameters:
error
- the exception thrown during the processing an input record. Will be rethrown to abort the parsing process.inputRow
- ignoredcontext
- ignored
-
-