public class LocatedException
extends java.lang.Exception
Exception that is associated with an optional Location in a source file.| Modifier and Type | Field and Description |
|---|---|
private Location |
optionalLocation |
| 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() |
java.lang.String |
getMessage()
Returns the message specified at creation time, preceeded with nicely formatted location
information (if any).
|
private final Location optionalLocation
public LocatedException(java.lang.String message,
Location optionalLocation)
public LocatedException(java.lang.String message,
Location optionalLocation,
java.lang.Throwable optionalCause)