Package com.fizzed.rocker
Class RenderingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.fizzed.rocker.RenderingException
-
- All Implemented Interfaces:
java.io.Serializable
public class RenderingException extends java.lang.RuntimeExceptionRuntime 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
-
-
Field Summary
Fields Modifier and Type Field Description private intsourceLineprivate intsourcePosInLineprivate java.lang.StringtemplateNameprivate java.lang.StringtemplatePath
-
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.StringbuildMessage(int sourceLine, int sourcePosInLine, java.lang.String templateName, java.lang.String templatePath, java.lang.String message, java.lang.Throwable cause)intgetSourceLine()intgetSourcePosInLine()java.lang.StringgetTemplateName()java.lang.StringgetTemplatePath()booleanhasSourceInfo()
-
-
-
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()
-
-