Class ReferenceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.text.ParseException
org.dlese.dpc.schemedit.input.ReferenceException
All Implemented Interfaces:
Serializable

public class ReferenceException extends ParseException
Stores information about a problem trying to resolve a numeric or character reference within form input. Description of the Class
Author:
ostwald
See Also:
  • Field Details

    • ref

      public String ref
      A string representation of a character or numerical reference (e.g., Δ or invalid input: '&#00'a9;)
  • Constructor Details

    • ReferenceException

      public ReferenceException(String ref, String msg, int errorOffset)
      Constructor for the ReferenceException object
      Parameters:
      ref - The unresolvable reference
      msg - The reason the reference could not be resolved
      errorOffset - Offset to the unresolvable reference within the input string
  • Method Details

    • getErrorMessage

      public String getErrorMessage()
      Gets an error message describing the unresolvable reference, prividing the reference, the reason why it can't be resolved, and the position within the text of the reference.
      Returns:
      The errorMessage value