Web Site

org.codehaus.janino.util
Class LocatedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.codehaus.janino.util.CausedException
              extended byorg.codehaus.janino.util.LocatedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CompileException, Parser.ParseException, Scanner.ScanException

public class LocatedException
extends CausedException

An Exception that is associated with an optional Location in a source file.

See Also:
Serialized Form

Constructor Summary
LocatedException(java.lang.String message, Location optionalLocation)
           
LocatedException(java.lang.String message, Location optionalLocation, java.lang.Throwable optionalCause)
           
 
Method Summary
 Location getLocation()
          Returns the Location object specified at construction time (may be null).
 java.lang.String getMessage()
          Returns the message specified at creation time, preceeded with nicely formatted location information (if any).
 
Methods inherited from class org.codehaus.janino.util.CausedException
getCause, initCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, 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(java.lang.String message,
                        Location optionalLocation)

LocatedException

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

getMessage

public java.lang.String getMessage()
Returns the message specified at creation time, preceeded with nicely formatted location information (if any).


getLocation

public Location getLocation()
Returns the Location object specified at construction time (may be null).


Web Site