play.exceptions.TemplateCompilationException Maven / Gradle / Ivy
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 String.format("Template compilation error");
}
@Override
public String getErrorDescription() {
return String.format("The template %s does not compile : %s", getTemplate().name, getMessage());
}
}