org.dlese.dpc.schemedit.input
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:
- Serialized Form
Field Summary |
String |
ref
A string representation of a character or numerical reference (e.g.,
Δ or a9;) |
Method Summary |
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ref
public String ref
- A string representation of a character or numerical reference (e.g.,
Δ or a9;)
ReferenceException
public ReferenceException(String ref,
String msg,
int errorOffset)
- Constructor for the ReferenceException object
- Parameters:
ref
- The unresolvable referencemsg
- The reason the reference could not be resolvederrorOffset
- Offset to the unresolvable reference within the input
string
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