Package 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:
java.io.Serializable
,SourceAttachment
- Direct Known Subclasses:
TemplateCompilationException
,TemplateExecutionException
public abstract class TemplateException extends PlayException implements SourceAttachment
An exception during template execution- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateException(Template template, java.lang.Integer lineNumber, java.lang.String message)
TemplateException(Template template, java.lang.Integer lineNumber, java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getLineNumber()
java.util.List<java.lang.String>
getSource()
java.lang.String
getSourceFile()
Template
getTemplate()
-
Methods inherited from class play.exceptions.PlayException
getErrorDescription, getErrorTitle, getId, getInterestingStackTraceElement, getInterestingStrackTraceElement, getMoreHTML, isSourceAvailable
-
-
-
-
Method Detail
-
getTemplate
public Template getTemplate()
-
getLineNumber
public java.lang.Integer getLineNumber()
- Specified by:
getLineNumber
in interfaceSourceAttachment
- Overrides:
getLineNumber
in classPlayException
-
getSource
public java.util.List<java.lang.String> getSource()
- Specified by:
getSource
in interfaceSourceAttachment
-
getSourceFile
public java.lang.String getSourceFile()
- Specified by:
getSourceFile
in interfaceSourceAttachment
- Overrides:
getSourceFile
in classPlayException
-
-