Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessDeniedException.php

class AccessDeniedException

Same name in this branch
  1. 11.1.x vendor/symfony/finder/Exception/AccessDeniedException.php \Symfony\Component\Finder\Exception\AccessDeniedException

Thrown when the access on a file was denied.

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

  • class \Symfony\Component\HttpFoundation\File\Exception\FileException extends \Symfony\Component\HttpFoundation\File\Exception\RuntimeException
    • class \Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException extends \Symfony\Component\HttpFoundation\File\Exception\FileException

Expanded class hierarchy of AccessDeniedException

1 file declares its use of AccessDeniedException
FileUpload.php in core/modules/jsonapi/src/Controller/FileUpload.php

File

vendor/symfony/http-foundation/File/Exception/AccessDeniedException.php, line 19

Namespace

Symfony\Component\HttpFoundation\File\Exception
View source
class AccessDeniedException extends FileException {
    public function __construct(string $path) {
        parent::__construct(\sprintf('The file %s could not be accessed', $path));
    }

}

Members

Title Sort descending Modifiers Object type Summary
AccessDeniedException::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal