com.univocity.parsers.common
Class NoopProcessorErrorHandler<T extends Context>

java.lang.Object
  extended by com.univocity.parsers.common.NoopProcessorErrorHandler<T>
Type Parameters:
T - the Context type provided by the parser implementation.
All Implemented Interfaces:
ProcessorErrorHandler<T>

public final class NoopProcessorErrorHandler<T extends Context>
extends Object
implements ProcessorErrorHandler<T>

An (singleton) implementation of ProcessorErrorHandler that simply rethrows any DataProcessingException that comes into its handleError(DataProcessingException, Object[], Context)} method

Author:
uniVocity Software Pty Ltd - parsers@univocity.com
See Also:
ProcessorErrorHandler

Field Summary
static ProcessorErrorHandler instance
           
 
Method Summary
 void handleError(DataProcessingException error, Object[] inputRow, T context)
          Rethrows the DataProcessingException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final ProcessorErrorHandler instance
Method Detail

handleError

public void handleError(DataProcessingException error,
                        Object[] inputRow,
                        T context)
Rethrows the DataProcessingException

Specified by:
handleError in interface ProcessorErrorHandler<T extends Context>
Parameters:
error - the exception thrown during the processing an input record. Will be rethrown to abort the parsing process.
inputRow - ignored
context - ignored


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