All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.exceptions.TemplateCompilationException Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show 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 String.format("Template compilation error");
    }

    @Override
    public String getErrorDescription() {
        return String.format("The template %s does not compile : %s", getTemplate().name, getMessage());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy