Package org.thymeleaf.exceptions
Class TemplateProcessingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.thymeleaf.exceptions.TemplateEngineException
-
- org.thymeleaf.exceptions.TemplateProcessingException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
TemplateInputException,TemplateOutputException
public class TemplateProcessingException extends TemplateEngineException
General exception for errors raised during the process of a template.
- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integercolprivate java.lang.Integerlineprivate static longserialVersionUIDprivate java.lang.StringtemplateName
-
Constructor Summary
Constructors Constructor Description TemplateProcessingException(java.lang.String message)TemplateProcessingException(java.lang.String message, java.lang.String templateName, int line, int col)TemplateProcessingException(java.lang.String message, java.lang.String templateName, int line, int col, java.lang.Throwable cause)TemplateProcessingException(java.lang.String message, java.lang.String templateName, java.lang.Throwable cause)TemplateProcessingException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetCol()java.lang.IntegergetLine()java.lang.StringgetMessage()java.lang.StringgetTemplateName()booleanhasLineAndCol()booleanhasTemplateName()voidsetLineAndCol(int line, int col)voidsetTemplateName(java.lang.String templateName)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
templateName
private java.lang.String templateName
-
line
private java.lang.Integer line
-
col
private java.lang.Integer col
-
-
Constructor Detail
-
TemplateProcessingException
public TemplateProcessingException(java.lang.String message)
-
TemplateProcessingException
public TemplateProcessingException(java.lang.String message, java.lang.Throwable cause)
-
TemplateProcessingException
public TemplateProcessingException(java.lang.String message, java.lang.String templateName, java.lang.Throwable cause)
-
TemplateProcessingException
public TemplateProcessingException(java.lang.String message, java.lang.String templateName, int line, int col)- Parameters:
message- The message of the exceptiontemplateName- The name of the template for which the exception is thrownline- line position of the event that caused the exceptioncol- columns position of the event that caused the exception- Since:
- 3.0.0
-
TemplateProcessingException
public TemplateProcessingException(java.lang.String message, java.lang.String templateName, int line, int col, java.lang.Throwable cause)- Parameters:
message- The message of the exceptiontemplateName- The name of the template for which the exception is thrownline- line position of the event that caused the exceptioncol- columns position of the event that caused the exceptioncause- cause to be nested inside the exception- Since:
- 3.0.0
-
-
Method Detail
-
getTemplateName
public java.lang.String getTemplateName()
-
hasTemplateName
public boolean hasTemplateName()
-
getLine
public java.lang.Integer getLine()
-
getCol
public java.lang.Integer getCol()
-
hasLineAndCol
public boolean hasLineAndCol()
-
setTemplateName
public void setTemplateName(java.lang.String templateName)
-
setLineAndCol
public void setLineAndCol(int line, int col)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-