Class RenderingException

All Implemented Interfaces:
Serializable

public class RenderingException extends 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:
  • Field Details

    • sourceLine

      private final int sourceLine
    • sourcePosInLine

      private final int sourcePosInLine
    • templateName

      private final String templateName
    • templatePath

      private final String templatePath
  • Constructor Details

    • RenderingException

      public RenderingException(String message)
    • RenderingException

      public RenderingException(String message, Throwable cause)
    • RenderingException

      public RenderingException(int sourceLine, int sourcePosInLine, String message, Throwable cause)
    • RenderingException

      public RenderingException(int sourceLine, int sourcePosInLine, String templateName, String templatePath, String message, Throwable cause)
  • Method Details

    • buildMessage

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

      public int getSourceLine()
    • getSourcePosInLine

      public int getSourcePosInLine()
    • hasSourceInfo

      public boolean hasSourceInfo()
    • getTemplateName

      public String getTemplateName()
    • getTemplatePath

      public String getTemplatePath()