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
An Exception that is associated with an optional Location in a source file.
- See Also:
- Serialized Form
|
Method Summary |
Location |
getLocation()
|
java.lang.String |
getMessage()
Returns the message specified at creation time, preceeded with nicely formatted location
information (if any). |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LocatedException
public LocatedException(java.lang.String message,
Location optionalLocation)
LocatedException
public LocatedException(java.lang.String message,
Location optionalLocation,
java.lang.Throwable optionalCause)
getMessage
public java.lang.String getMessage()
- Returns the message specified at creation time, preceeded with nicely formatted location
information (if any).
- Overrides:
getMessage in class java.lang.Throwable
getLocation
public Location getLocation()
- Returns:
- The
Location specified at construction time (may be null)