public final class IndexExceptionBuilder
extends java.lang.Object
| Constructor and Description |
|---|
IndexExceptionBuilder(Database db)
Constructs a new
IndexExceptionBuilder |
| Modifier and Type | Method and Description |
|---|---|
IndexExceptionBuilder |
addProblemAddress(IField field,
long address)
Adds an address range to this problem description, given the field that may be corrupt
and the base address for its struct.
|
IndexExceptionBuilder |
addProblemAddress(java.lang.String description,
IField field,
long address)
Adds an address range to this problem description, given a field that may be corrupt, the base
address for its struct, and a custom description for the field.
|
IndexExceptionBuilder |
addProblemAddress(java.lang.String description,
long dataBlockAddress,
int rangeSize)
Adds an address range to this problem description, given the first address that may be corrupt,
the size of the possibly-corrupt address range, and a custom description for the memory at this
address range.
|
void |
attachTo(IndexException exception)
Attaches the addresses collected by the receiver to the given exception.
|
IndexException |
build(java.lang.String description)
Returns a newly constructed
IndexException containing the given message and all the addresses collected
by this object. |
public IndexExceptionBuilder(Database db)
IndexExceptionBuilderpublic IndexExceptionBuilder addProblemAddress(java.lang.String description, long dataBlockAddress, int rangeSize)
public IndexExceptionBuilder addProblemAddress(java.lang.String description, IField field, long address)
public IndexExceptionBuilder addProblemAddress(IField field, long address)
public IndexException build(java.lang.String description)
IndexException containing the given message and all the addresses collected
by this object.public void attachTo(IndexException exception)