1<?php
2/**
3 * PHPTAL templating engine
4 *
5 * PHP Version 5
6 *
7 * @category HTML
8 * @package  PHPTAL
9 * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10 * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11 * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12 * @version  SVN: $Id$
13 * @link     http://phptal.org/
14 */
15
16/**
17 * ${unknown:foo} found in template
18 *
19 * @package PHPTAL
20 * @subpackage Exception
21 */
22class PHPTAL_UnknownModifierException extends PHPTAL_TemplateException
23{
24    private $modifier_name;
25    public function __construct($msg, $modifier_name = null)
26    {
27        $this->modifier_name = $modifier_name;
28        parent::__construct($msg);
29    }
30
31    public function getModifierName()
32    {
33        return $this->modifier_name;
34    }
35}
36