Package 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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocatedException(String message, Location optionalLocation)LocatedException(String message, Location optionalLocation, Throwable optionalCause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationgetLocation()StringgetMessage()Returns the message specified at creation time, preceeded with nicely formatted location information (if any).-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
Returns the message specified at creation time, preceeded with nicely formatted location information (if any).- Overrides:
getMessagein classThrowable
-
-