You are here

class Twig_Sandbox_SecurityNotAllowedFilterError in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Sandbox/SecurityNotAllowedFilterError.php \Twig_Sandbox_SecurityNotAllowedFilterError

Exception thrown when a not allowed filter is used in a template.

@author Martin Hasoň <martin.hason@gmail.com>

Hierarchy

Expanded class hierarchy of Twig_Sandbox_SecurityNotAllowedFilterError

File

vendor/Twig/Sandbox/SecurityNotAllowedFilterError.php, line 17

View source
class Twig_Sandbox_SecurityNotAllowedFilterError extends Twig_Sandbox_SecurityError {
  private $filterName;
  public function __construct($message, $functionName, $lineno = -1, $filename = null, Exception $previous = null) {
    parent::__construct($message, $lineno, $filename, $previous);
    $this->filterName = $functionName;
  }
  public function getFilterName() {
    return $this->filterName;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_Error::$filename protected property
Twig_Error::$lineno protected property
Twig_Error::$previous protected property
Twig_Error::$rawMessage protected property
Twig_Error::getRawMessage public function Gets the raw message.
Twig_Error::getTemplateFile public function Gets the filename where the error occurred.
Twig_Error::getTemplateLine public function Gets the template line where the error occurred.
Twig_Error::guess public function
Twig_Error::guessTemplateInfo protected function
Twig_Error::setTemplateFile public function Sets the filename where the error occurred.
Twig_Error::setTemplateLine public function Sets the template line where the error occurred.
Twig_Error::updateRepr protected function
Twig_Error::__call public function For PHP < 5.3.0, provides access to the getPrevious() method.
Twig_Sandbox_SecurityNotAllowedFilterError::$filterName private property
Twig_Sandbox_SecurityNotAllowedFilterError::getFilterName public function
Twig_Sandbox_SecurityNotAllowedFilterError::__construct public function Constructor. Overrides Twig_Error::__construct