play.exceptions.TemplateCompilationException Maven / Gradle / Ivy
The newest version!
package play.exceptions;
import play.templates.Template;
/**
* A exception during template compilation
*/
public class TemplateCompilationException extends TemplateException {
public TemplateCompilationException(Template template, Integer lineNumber, String message) {
super(template, lineNumber, message);
}
@Override
public String getErrorTitle() {
return "Template compilation error";
}
@Override
public String getErrorDescription() {
return String.format("The template %s does not compile : %s", getTemplate().name, getMessage());
}
}