org.codehaus.commons.compiler
Class LocatedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.commons.compiler.LocatedException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CompileException
public class LocatedException
- extends Exception
An Exception that is associated with an optional Location in a source file.
- See Also:
- Serialized Form
LocatedException
public LocatedException(String message,
Location optionalLocation)
LocatedException
public LocatedException(String message,
Location optionalLocation,
Throwable optionalCause)
getMessage
public String getMessage()
- Returns the message specified at creation time, preceeded with nicely formatted location
information (if any).
- Overrides:
getMessage in class Throwable
getLocation
public Location getLocation()
- Returns:
- The
Location specified at construction time (may be null)