org.codehaus.janino
Class Scanner.LocatedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.janino.Scanner.LocatedException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CompileException, Parser.ParseException, Scanner.ScanException
- Enclosing class:
- Scanner
- public static class Scanner.LocatedException
- extends Exception
- See Also:
- Serialized Form
Method Summary |
Location |
getLocation()
Returns the Location object specified at
construction time (may be null ). |
String |
getMessage()
Returns the message specified at creation time, preceeded
with nicely formatted location information (if any). |
getMessage
public String getMessage()
- Returns the message specified at creation time, preceeded
with nicely formatted location information (if any).
getLocation
public Location getLocation()
- Returns the
Location
object specified at
construction time (may be null
).