Package org.thymeleaf.exceptions
Class TemplateProcessingException
- Object
-
- Throwable
-
- Exception
-
- RuntimeException
-
- org.thymeleaf.exceptions.TemplateEngineException
-
- org.thymeleaf.exceptions.TemplateProcessingException
-
- All Implemented Interfaces:
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
- Author:
- Daniel Fernández, Guven Demir
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateProcessingException(String message)
TemplateProcessingException(String message, String templateName, int line, int col)
TemplateProcessingException(String message, String templateName, int line, int col, Throwable cause)
TemplateProcessingException(String message, String templateName, Throwable cause)
TemplateProcessingException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getCol()
Integer
getLine()
String
getMessage()
String
getTemplateName()
boolean
hasLineAndCol()
boolean
hasTemplateName()
void
setLineAndCol(int line, int col)
void
setTemplateName(String templateName)
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TemplateProcessingException
public TemplateProcessingException(String message)
-
TemplateProcessingException
public TemplateProcessingException(String message, String templateName, Throwable cause)
-
TemplateProcessingException
public TemplateProcessingException(String message, 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(String message, String templateName, int line, int col, 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 String getTemplateName()
-
hasTemplateName
public boolean hasTemplateName()
-
getLine
public Integer getLine()
-
getCol
public Integer getCol()
-
hasLineAndCol
public boolean hasLineAndCol()
-
setTemplateName
public void setTemplateName(String templateName)
-
setLineAndCol
public void setLineAndCol(int line, int col)
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-