Class IndexExceptionBuilder

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.IndexExceptionBuilder

public final class IndexExceptionBuilder extends Object
Given a set of memory ranges, this class constructs detailed error messages.
  • Constructor Details

  • 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

      public IndexExceptionBuilder 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.
      Returns:
      this
    • addProblemAddress

      public 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.
      Returns:
      this
    • build

      public IndexException build(String description)
      Returns a newly constructed IndexException containing the given message and all the addresses collected by this object.
    • attachTo

      public void attachTo(IndexException exception)
      Attaches the addresses collected by the receiver to the given exception.