Public Member Functions | |
TemplumTemplateError ($message, $code=0, $template=NULL) | |
Create a new TemplumTemplateError instance. | |
getTemplate () | |
Return the TemplumTemplate instance that contains the error. | |
Protected Attributes | |
$template = NULL |
This exception is thrown by the TemplumTemplate class when errors occur during the execution of templates. PHP errors, warnings and notices that occur during the template execution are captured by the TemplumTemplate class and are thrown as TemplumTemplateError exceptions.
TemplumTemplateError::TemplumTemplateError | ( | $ | message, | |
$ | code = 0 , |
|||
$ | template = NULL | |||
) |
Create a new TemplumTemplateError instance.
$message | (string) The error message. | |
$code | (int) The error code | |
$template | (TemplumTemplate) The template containing the error. |
TemplumTemplateError::getTemplate | ( | ) |
Return the TemplumTemplate instance that contains the error.
TemplumTemplateError::$template = NULL [protected] |
The TemplumTemplate instance causing the error.