Class 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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​(java.lang.String message,
                                @Nullable
                                Location location)
      • LocatedException

        public LocatedException​(java.lang.String message,
                                @Nullable
                                Location location,
                                @Nullable
                                java.lang.Throwable cause)
    • Method Detail

      • 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