public class ReplacementErrorHandler extends java.lang.Object implements ErrorHandler
ErrorHandler.Location| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
_replacement |
DEFAULT| Constructor and Description |
|---|
ReplacementErrorHandler()
Constructs a ReplacementErrorHandler which replaces all errored values
with
null. |
ReplacementErrorHandler(java.lang.Object replacement)
Constructs a ReplacementErrorHandler which replaces all errored values
with the given Object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
handleRowError(Column column,
byte[] columnData,
ErrorHandler.Location location,
java.lang.Exception error)
Handles an error encountered while reading a column of data from a Table
row.
|
public ReplacementErrorHandler()
null.public ReplacementErrorHandler(java.lang.Object replacement)
public java.lang.Object handleRowError(Column column, byte[] columnData, ErrorHandler.Location location, java.lang.Exception error) throws java.io.IOException
ErrorHandlerhandleRowError in interface ErrorHandlercolumn - 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 encounteredjava.io.IOException