Package org.codehaus.commons.compiler
Class LocatedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.codehaus.commons.compiler.LocatedException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CompileException
public class LocatedException extends java.lang.Exception
AnException
that is associated with an optionalLocation
in a source file.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Location
optionalLocation
-
Constructor Summary
Constructors Constructor Description LocatedException(java.lang.String message, Location optionalLocation)
LocatedException(java.lang.String message, Location optionalLocation, java.lang.Throwable optionalCause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location
getLocation()
java.lang.String
getMessage()
Returns the message specified at creation time, preceeded with nicely formatted location information (if any).
-
-
-
Field Detail
-
optionalLocation
private final Location optionalLocation
-
-