ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SecurityNotAllowedFunctionError.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
18{
20
21 public function __construct($message, $functionName, $lineno = -1, $filename = null, Exception $previous = null)
22 {
23 parent::__construct($message, $lineno, $filename, $previous);
24 $this->functionName = $functionName;
25 }
26
27 public function getFunctionName()
28 {
30 }
31}
32
33class_alias('Twig_Sandbox_SecurityNotAllowedFunctionError', 'Twig\Sandbox\SecurityNotAllowedFunctionError', false);
An exception for terminatinating execution or to throw for unit testing.
Exception thrown when a security error occurs at runtime.
Exception thrown when a not allowed function is used in a template.
__construct($message, $functionName, $lineno=-1, $filename=null, Exception $previous=null)
catch(Exception $e) $message