Class TTemplateException
TTemplateException class
TTemplateException represents an exception caused by invalid template syntax.
| Method Summary |
|
integer
|
|
|
string
|
|
|
string
|
|
|
void
|
|
|
void
|
|
|
void
|
|
| Methods Inherited From Exception (Internal Class) |
|
getCode ( ), getFile ( ), getLine ( ), getMessage ( ), getPrevious ( ), getTrace ( ), getTraceAsString ( ), __clone ( ), __toString ( )
|
| Method Details |
getLineNumber
| public integer getLineNumber |
() |
| Output |
|
integer
| the line number at which the template has error |
| Exception |
|
getTemplateFile
| public string getTemplateFile |
() |
| Output |
|
string
| the template file that causes the exception. This could be empty if the template is an embedded template. In this case, use TemplateSource to obtain the actual template content. |
| Exception |
|
getTemplateSource
| public string getTemplateSource |
() |
| Output |
|
string
| the template source code that causes the exception. This is empty if TemplateFile is not empty. |
| Exception |
|
setLineNumber
| public void setLineNumber |
(integer $value ) |
| Input |
| integer | $value | the line number at which the template has error |
| Output |
| Exception |
|
setTemplateFile
| public void setTemplateFile |
(string $value ) |
| Input |
| string | $value | the template file that causes the exception |
| Output |
| Exception |
|
setTemplateSource
| public void setTemplateSource |
(string $value ) |
| Input |
| string | $value | the template source code that causes the exception |
| Output |
| Exception |
|
|