4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
13 * Exception thrown when a not allowed filter is used in a template.
15 * @author Martin HasoĊ <martin.hason@gmail.com>
17 class Twig_Sandbox_SecurityNotAllowedFilterError extends Twig_Sandbox_SecurityError
21 public function __construct($message, $functionName, $lineno = -1, $filename = null, Exception $previous = null)
23 parent::__construct($message, $lineno, $filename, $previous);
24 $this->filterName = $functionName;
27 public function getFilterName()
29 return $this->filterName;
33 class_alias('Twig_Sandbox_SecurityNotAllowedFilterError', 'Twig\Sandbox\SecurityNotAllowedFilterError', false);