ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SecurityNotAllowedPropertyError.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 {
19  private $className;
20  private $propertyName;
21 
23  {
24  parent::__construct($message, $lineno, $filename, $previous);
25  $this->className = $className;
26  $this->propertyName = $propertyName;
27  }
28 
29  public function getClassName()
30  {
31  return $this->className;
32  }
33 
34  public function getPropertyName()
35  {
36  return $this->propertyName;
37  }
38 }
39 
40 class_alias('Twig_Sandbox_SecurityNotAllowedPropertyError', 'Twig\Sandbox\SecurityNotAllowedPropertyError', false);
Exception thrown when a security error occurs at runtime.
__construct($message, $className, $propertyName, $lineno=-1, $filename=null, Exception $previous=null)
catch(Exception $e) $message
Exception thrown when a not allowed class property is used in a template.