Class JsltException

  • All Implemented Interfaces:
    java.io.Serializable

    public class JsltException
    extends java.lang.RuntimeException
    Parent exception for all exceptions thrown by JSLT for both compilation and run-time errors.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Location location  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumn()
      What column did the error occur on? -1 if unknown.
      int getLine()
      What line did the error occur on? -1 if unknown.
      java.lang.String getMessage()
      Returns the error message with location information.
      java.lang.String getMessageWithoutLocation()
      Returns the error message without location information.
      java.lang.String getSource()
      What file/resource did the error occur in? Can be null.
      • 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
    • Field Detail

    • Constructor Detail

      • JsltException

        public JsltException​(java.lang.String message)
      • JsltException

        public JsltException​(java.lang.String message,
                             Location location)
      • JsltException

        public JsltException​(java.lang.String message,
                             java.lang.Throwable cause)
      • JsltException

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

      • getMessage

        public java.lang.String getMessage()
        Returns the error message with location information.
        Overrides:
        getMessage in class java.lang.Throwable
      • getMessageWithoutLocation

        public java.lang.String getMessageWithoutLocation()
        Returns the error message without location information.
      • getSource

        public java.lang.String getSource()
        What file/resource did the error occur in? Can be null.
      • getLine

        public int getLine()
        What line did the error occur on? -1 if unknown.
      • getColumn

        public int getColumn()
        What column did the error occur on? -1 if unknown.