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

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy