library/smarty/libs/sysplugins/smartycompilerexception.php
changeset 46 f11c31f7fa3e
parent 45 a56e7f9a0463
child 47 03388ec805b4
equal deleted inserted replaced
45:a56e7f9a0463 46:f11c31f7fa3e
     1 <?php
       
     2 
       
     3 /**
       
     4  * Smarty compiler exception class
       
     5  *
       
     6  * @package Smarty
       
     7  */
       
     8 class SmartyCompilerException extends SmartyException {
       
     9     public function __toString() {
       
    10         return ' --> Smarty Compiler: ' . $this->message . ' <-- ';
       
    11     }
       
    12 
       
    13     /**
       
    14      * The line number of the template error
       
    15      *
       
    16      * @type int|null
       
    17      */
       
    18     public $line = null;
       
    19     /**
       
    20      * The template source snippet relating to the error
       
    21      *
       
    22      * @type string|null
       
    23      */
       
    24     public $source = null;
       
    25     /**
       
    26      * The raw text of the error message
       
    27      *
       
    28      * @type string|null
       
    29      */
       
    30     public $desc = null;
       
    31     /**
       
    32      * The resource identifier or template name
       
    33      *
       
    34      * @type string|null
       
    35      */
       
    36     public $template = null;
       
    37 }