APIdia Launch Partner
Top Description Fields Constructors Methods
io.github.spannm.jackcess.util

public Class ReplacementErrorHandler

extends Object
implements ErrorHandler
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.util.ErrorHandler
Known Direct Subclasses
io.github.spannm.jackcess.util.DebugErrorHandler
Imports
io.github.spannm.jackcess.Column, java.io.IOException

Simple implementation of an ErrorHandler which always returns the configured object.

Field Summary

Modifier and TypeField and Description
private final Object

Constructor Summary

AccessConstructor and Description
public
ReplacementErrorHandler()

Constructs a ReplacementErrorHandler which replaces all errored values with null.

public
ReplacementErrorHandler(Object replacement)

Constructs a ReplacementErrorHandler which replaces all errored values with the given Object.

Method Summary

Modifier and TypeMethod and Description
public Object
handleRowError(Column column, byte[] columnData, ErrorHandler.Location location, Exception error)

Implements io.github.spannm.jackcess.util.ErrorHandler.handleRowError.

Handles an error encountered while reading a column of data from a Table row.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

replacementback to summary
private final Object replacement

Constructor Detail

ReplacementErrorHandlerback to summary
public ReplacementErrorHandler()

Constructs a ReplacementErrorHandler which replaces all errored values with null.

ReplacementErrorHandlerback to summary
public ReplacementErrorHandler(Object replacement)

Constructs a ReplacementErrorHandler which replaces all errored values with the given Object.

Method Detail

handleRowErrorback to summary
public Object handleRowError(Column column, byte[] columnData, ErrorHandler.Location location, Exception error) throws IOException

Implements io.github.spannm.jackcess.util.ErrorHandler.handleRowError.

Doc from io.github.spannm.jackcess.util.ErrorHandler.handleRowError.

Handles an error encountered while reading a column of data from a Table row. Handler may either throw an exception (which will be propagated back to the caller) or return a replacement for this row's column value (in which case the row will continue to be read normally).

Annotations
@Override