Class RenderingException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RenderingException
    extends java.lang.RuntimeException
    Runtime exception while rendering a RockerTemplate. If generated while executing a template -- then the source info (line and position in line) of the original source template will be populated.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RenderingException​(int sourceLine, int sourcePosInLine, java.lang.String templateName, java.lang.String templatePath, java.lang.String message, java.lang.Throwable cause)  
      RenderingException​(int sourceLine, int sourcePosInLine, java.lang.String message, java.lang.Throwable cause)  
      RenderingException​(java.lang.String message)  
      RenderingException​(java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String buildMessage​(int sourceLine, int sourcePosInLine, java.lang.String templateName, java.lang.String templatePath, java.lang.String message, java.lang.Throwable cause)  
      int getSourceLine()  
      int getSourcePosInLine()  
      java.lang.String getTemplateName()  
      java.lang.String getTemplatePath()  
      boolean hasSourceInfo()  
      • 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

      • sourceLine

        private final int sourceLine
      • sourcePosInLine

        private final int sourcePosInLine
      • templateName

        private final java.lang.String templateName
      • templatePath

        private final java.lang.String templatePath
    • Constructor Detail

      • RenderingException

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

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

        public RenderingException​(int sourceLine,
                                  int sourcePosInLine,
                                  java.lang.String message,
                                  java.lang.Throwable cause)
      • RenderingException

        public RenderingException​(int sourceLine,
                                  int sourcePosInLine,
                                  java.lang.String templateName,
                                  java.lang.String templatePath,
                                  java.lang.String message,
                                  java.lang.Throwable cause)
    • Method Detail

      • buildMessage

        private static java.lang.String buildMessage​(int sourceLine,
                                                     int sourcePosInLine,
                                                     java.lang.String templateName,
                                                     java.lang.String templatePath,
                                                     java.lang.String message,
                                                     java.lang.Throwable cause)
      • getSourceLine

        public int getSourceLine()
      • getSourcePosInLine

        public int getSourcePosInLine()
      • hasSourceInfo

        public boolean hasSourceInfo()
      • getTemplateName

        public java.lang.String getTemplateName()
      • getTemplatePath

        public java.lang.String getTemplatePath()