Class IndexExceptionBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.IndexExceptionBuilder
Given a set of memory ranges, this class constructs detailed error messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProblemAddress(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.addProblemAddress(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.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.voidattachTo(IndexException exception)Attaches the addresses collected by the receiver to the given exception.Returns a newly constructedIndexExceptioncontaining the given message and all the addresses collected by this object.
-
Constructor Details
-
IndexExceptionBuilder
Constructs a newIndexExceptionBuilder
-
-
Method Details
-
addProblemAddress
public IndexExceptionBuilder addProblemAddress(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. -
addProblemAddress
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.- Returns:
- this
-
addProblemAddress
Adds an address range to this problem description, given the field that may be corrupt and the base address for its struct.- Returns:
- this
-
build
Returns a newly constructedIndexExceptioncontaining the given message and all the addresses collected by this object. -
attachTo
Attaches the addresses collected by the receiver to the given exception.
-