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
-
-
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()
Returns theLocation
object specified at construction time (may benull
).java.lang.String
getMessage()
Returns the message specified at creation time, preceeded with nicely formatted location information (if any).
-