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

public Class DebugErrorHandler

extends ReplacementErrorHandler
Class Inheritance
Imports
io.github.spannm.jackcess.Column, io.github.spannm.jackcess.impl.ByteUtil, java.io.IOException, java.util.logging.Level, .Logger

Implementation of ErrorHandler which is useful for generating debug information about bad row data (great for bug reports!). After logging a debug entry for the failed column, it will return some sort of replacement value, see ReplacementErrorHandler.

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public
DebugErrorHandler()

Constructs a DebugErrorHandler which replaces all errored values with null.

public
DebugErrorHandler(Object replacement)

Constructs a DebugErrorHandler 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)

Overrides io.github.spannm.jackcess.util.ReplacementErrorHandler.handleRowError.

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

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

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

DebugErrorHandlerback to summary
public DebugErrorHandler()

Constructs a DebugErrorHandler which replaces all errored values with null.

DebugErrorHandlerback to summary
public DebugErrorHandler(Object replacement)

Constructs a DebugErrorHandler 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

Overrides io.github.spannm.jackcess.util.ReplacementErrorHandler.handleRowError.

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