commit 4c346829834c8cdaa67d6953fa2f08b591cd0a8d parent e9f1fa9ee6c3281177dc833d0aca630e9b3830b7 Author: Marcel <MTRNord@users.noreply.github.com> Date: Sat, 31 Oct 2015 17:50:44 +0100 Create smartycompilerexception.php Diffstat:
| A | libs/smarty/sysplugins/smartycompilerexception.php | | | 39 | +++++++++++++++++++++++++++++++++++++++ |
1 file changed, 39 insertions(+), 0 deletions(-)
diff --git a/libs/smarty/sysplugins/smartycompilerexception.php b/libs/smarty/sysplugins/smartycompilerexception.php @@ -0,0 +1,39 @@ +<?php + +/** + * Smarty compiler exception class + * + * @package Smarty + */ +class SmartyCompilerException extends SmartyException +{ + public function __toString() + { + return ' --> Smarty Compiler: ' . $this->message . ' <-- '; + } + + /** + * The line number of the template error + * + * @type int|null + */ + public $line = null; + /** + * The template source snippet relating to the error + * + * @type string|null + */ + public $source = null; + /** + * The raw text of the error message + * + * @type string|null + */ + public $desc = null; + /** + * The resource identifier or template name + * + * @type string|null + */ + public $template = null; +}