1<?php
2
3/**
4 * Smarty compiler exception class
5 *
6 * @package Smarty
7 */
8class SmartyCompilerException extends SmartyException
9{
10    /**
11     * @return string
12     */
13    public function __toString()
14    {
15        return ' --> Smarty Compiler: ' . $this->message . ' <-- ';
16    }
17
18    /**
19     * The line number of the template error
20     *
21     * @type int|null
22     */
23    public $line = null;
24
25    /**
26     * The template source snippet relating to the error
27     *
28     * @type string|null
29     */
30    public $source = null;
31
32    /**
33     * The raw text of the error message
34     *
35     * @type string|null
36     */
37    public $desc = null;
38
39    /**
40     * The resource identifier or template name
41     *
42     * @type string|null
43     */
44    public $template = null;
45}
46