public class TemplateProcessingException extends TemplateEngineException
General exception for errors raised during the process of a template.
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
Integer |
getCol() |
Integer |
getLine() |
String |
getMessage() |
String |
getTemplateName() |
boolean |
hasLineAndCol() |
boolean |
hasTemplateName() |
void |
setLineAndCol(int line,
int col) |
void |
setTemplateName(String templateName) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TemplateProcessingException(String message)
public TemplateProcessingException(String message, String templateName, Throwable cause)
public TemplateProcessingException(String message, String templateName, int line, int col)
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 exceptionpublic TemplateProcessingException(String message, String templateName, int line, int col, Throwable cause)
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 exceptionpublic String getTemplateName()
public boolean hasTemplateName()
public Integer getLine()
public Integer getCol()
public boolean hasLineAndCol()
public void setTemplateName(String templateName)
public void setLineAndCol(int line, int col)
public String getMessage()
getMessage
in class Throwable
Copyright © 2017 The THYMELEAF team. All rights reserved.