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
General exception for errors raised during the process of a template.
- Since:
- 1.0
- Author:
- Daniel Fernández, Guven Demir
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateProcessingException(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
Modifier and TypeMethodDescriptiongetCol()getLine()booleanbooleanvoidsetLineAndCol(int line, int col) voidsetTemplateName(String templateName) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TemplateProcessingException
-
TemplateProcessingException
-
TemplateProcessingException
-
TemplateProcessingException
- 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 Details
-
getTemplateName
-
hasTemplateName
public boolean hasTemplateName() -
getLine
-
getCol
-
hasLineAndCol
public boolean hasLineAndCol() -
setTemplateName
-
setLineAndCol
public void setLineAndCol(int line, int col) -
getMessage
- Overrides:
getMessagein classThrowable
-