play.exceptions
Class TemplateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
play.exceptions.PlayException
play.exceptions.TemplateException
- All Implemented Interfaces:
- Serializable, SourceAttachment
- Direct Known Subclasses:
- TemplateCompilationException, TemplateExecutionException
public abstract class TemplateException
- extends PlayException
- implements SourceAttachment
An exception during template execution
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TemplateException
public TemplateException(Template template,
Integer lineNumber,
String message)
TemplateException
public TemplateException(Template template,
Integer lineNumber,
String message,
Throwable cause)
getTemplate
public Template getTemplate()
getLineNumber
public Integer getLineNumber()
- Specified by:
getLineNumber in interface SourceAttachment- Overrides:
getLineNumber in class PlayException
getSource
public List<String> getSource()
- Specified by:
getSource in interface SourceAttachment
getSourceFile
public String getSourceFile()
- Specified by:
getSourceFile in interface SourceAttachment- Overrides:
getSourceFile in class PlayException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly