janino.net

org.codehaus.commons.compiler
Class LocatedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
LocatedException(String message, Location optionalLocation)
           
LocatedException(String message, Location optionalLocation, Throwable optionalCause)
           
 
Method Summary
 Location getLocation()
           
 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
 

Constructor Detail

LocatedException

public LocatedException(String message,
                        Location optionalLocation)

LocatedException

public LocatedException(String message,
                        Location optionalLocation,
                        Throwable optionalCause)
Method Detail

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)

janino.net