Class PebbleException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String filename  
      protected java.lang.Integer lineNumber  
      protected java.lang.String message  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      PebbleException​(java.lang.Throwable cause, java.lang.String message)  
      PebbleException​(java.lang.Throwable cause, java.lang.String message, java.lang.Integer lineNumber, java.lang.String filename)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFileName()
      Returns the filename in which the exception was thrown.
      java.lang.Integer getLineNumber()
      Returns the line number on which the exception was thrown.
      java.lang.String getPebbleMessage()
      Returns the message which is set for the exception by Pebble.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • lineNumber

        protected final java.lang.Integer lineNumber
      • filename

        protected final java.lang.String filename
      • message

        protected final java.lang.String message
    • Constructor Detail

      • PebbleException

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

        public PebbleException​(java.lang.Throwable cause,
                               java.lang.String message,
                               java.lang.Integer lineNumber,
                               java.lang.String filename)
    • Method Detail

      • getLineNumber

        public java.lang.Integer getLineNumber()
        Returns the line number on which the exception was thrown.
        Returns:
        the line number on which the exception was thrown.
      • getFileName

        public java.lang.String getFileName()
        Returns the filename in which the exception was thrown.
        Returns:
        the filename in which the exception was thrown.
      • getPebbleMessage

        public java.lang.String getPebbleMessage()
        Returns the message which is set for the exception by Pebble. Its the message which is not enhanced with the line number and filename.
        Returns:
        the message which is set for the exception by Pebble.