public class ReplacementErrorHandler extends Object implements ErrorHandler
ErrorHandler.Location
DEFAULT
Constructor and Description |
---|
ReplacementErrorHandler()
Constructs a ReplacementErrorHandler which replaces all errored values
with
null . |
ReplacementErrorHandler(Object replacement)
Constructs a ReplacementErrorHandler which replaces all errored values
with the given Object.
|
Modifier and Type | Method and Description |
---|---|
Object |
handleRowError(Column column,
byte[] columnData,
ErrorHandler.Location location,
Exception error)
Handles an error encountered while reading a column of data from a Table
row.
|
public ReplacementErrorHandler()
null
.public ReplacementErrorHandler(Object replacement)
public Object handleRowError(Column column, byte[] columnData, ErrorHandler.Location location, Exception error) throws IOException
ErrorHandler
handleRowError
in interface ErrorHandler
column
- the info for the column being readcolumnData
- the actual column data for the column being read (which
may be null
depending on when the exception
was thrown during the reading process)location
- the current location of the errorerror
- the error that was encounteredIOException
Copyright © 2005–2024 OpenHMS. All rights reserved.