public final class ParserException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private Location |
location |
private static long |
serialVersionUID |
Constructor and Description |
---|
ParserException(java.lang.String message,
Location location) |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation() |
ParserException |
initCause(java.lang.Throwable cause) |
private static final long serialVersionUID
private final Location location
public ParserException(java.lang.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()
public ParserException initCause(java.lang.Throwable cause)
initCause
in class java.lang.Throwable