Package org.thymeleaf.exceptions
Class TemplateProcessingException
-
-
-
-
- org.thymeleaf.exceptions.TemplateEngineException
-
- org.thymeleaf.exceptions.TemplateProcessingException
-
-
-
-
- All Implemented Interfaces:
- Direct Known Subclasses:
TemplateInputException
,TemplateOutputException
public class TemplateProcessingException extends TemplateEngineException
General exception for errors raised during the process of a template.
- Since:
- 1.0
- Author:
- Daniel Fernández, Guven Demir
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description getCol()
getLine()
getMessage()
getTemplateName()
boolean
hasLineAndCol()
boolean
hasTemplateName()
void
setLineAndCol(int line, int col)
void
templateName)
-
-
-
Constructor Detail
-
TemplateProcessingException
public TemplateProcessingException( message)
-
TemplateProcessingException
public TemplateProcessingException( message, cause)
-
TemplateProcessingException
public TemplateProcessingException( message, templateName, cause)
-
TemplateProcessingException
public TemplateProcessingException( message, 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( message, templateName, int line, int col, 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 getTemplateName()
-
hasTemplateName
public boolean hasTemplateName()
-
getLine
public getLine()
-
getCol
public getCol()
-
hasLineAndCol
public boolean hasLineAndCol()
-
setTemplateName
public void setTemplateName( templateName)
-
setLineAndCol
public void setLineAndCol(int line, int col)
-
getMessage
public getMessage()
- Overrides:
in class
-
-