public final class ParserException extends Exception
Modifier and Type | Field and Description |
---|---|
private Location |
location |
private static long |
serialVersionUID |
Constructor and Description |
---|
ParserException(String message,
Location location) |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private final Location location
public ParserException(String message, Location location)
message
- The error message. The message may be shown to
the user and should be appropriately formated.location
- The location on which the error occured. The
location may be null, if the location is unknown or the error
is independent of a location.public Location getLocation()