You are here

class AccessException in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Access/AccessException.php \Drupal\Core\Access\AccessException

An exception thrown for access errors.

Examples could be invalid access callback return values, or invalid access objects being used.

Hierarchy

  • class \Drupal\Core\Access\AccessException extends \Drupal\Core\Access\RuntimeException

Expanded class hierarchy of AccessException

3 files declare their use of AccessException
AccessManagerTest.php in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Contains \Drupal\Tests\Core\Access\AccessManagerTest.
LatestRevisionCheck.php in core/modules/content_moderation/src/Access/LatestRevisionCheck.php
WorkspaceAccessException.php in core/modules/workspaces/src/WorkspaceAccessException.php

File

core/lib/Drupal/Core/Access/AccessException.php, line 11

Namespace

Drupal\Core\Access
View source
class AccessException extends \RuntimeException {

}

Members