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
An Exception that is associated with an optional Location in a source file.
See Also:
  • Constructor Details

    • LocatedException

      public LocatedException(String message, Location optionalLocation)
    • LocatedException

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

    • 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 object specified at construction time (may be null).