class ContextException

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Exception/ContextException.php \Drupal\Component\Plugin\Exception\ContextException
  2. 10 core/lib/Drupal/Component/Plugin/Exception/ContextException.php \Drupal\Component\Plugin\Exception\ContextException
  3. 11.x core/lib/Drupal/Component/Plugin/Exception/ContextException.php \Drupal\Component\Plugin\Exception\ContextException

An exception class to be thrown for context plugin exceptions.

Hierarchy

Expanded class hierarchy of ContextException

14 files declare their use of ContextException
BlockAccessControlHandler.php in core/modules/block/src/BlockAccessControlHandler.php
ConditionAccessResolverTrait.php in core/lib/Drupal/Core/Condition/ConditionAccessResolverTrait.php
ConditionAccessResolverTraitTest.php in core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php
Contains \Drupal\Tests\Core\Condition\ConditionAccessResolverTraitTest.
Context.php in core/lib/Drupal/Core/Plugin/Context/Context.php
Context.php in core/lib/Drupal/Component/Plugin/Context/Context.php

... See full list

File

core/lib/Drupal/Component/Plugin/Exception/ContextException.php, line 8

Namespace

Drupal\Component\Plugin\Exception
View source
class ContextException extends \Exception implements ExceptionInterface {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.