public class LocatedException
extends java.lang.Exception
Exception
that is associated with an optional Location
in a source file.Constructor and Description |
---|
LocatedException(java.lang.String message,
Location optionalLocation) |
LocatedException(java.lang.String message,
Location optionalLocation,
java.lang.Throwable optionalCause) |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Returns the
Location object specified at
construction time (may be null ). |
java.lang.String |
getMessage()
Returns the message specified at creation time, preceeded with nicely formatted location
information (if any).
|
public LocatedException(java.lang.String message, Location optionalLocation)
public LocatedException(java.lang.String message, Location optionalLocation, java.lang.Throwable optionalCause)