class 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

Expanded class hierarchy of AccessDeniedException

5 files declare their use of AccessDeniedException
FileBinaryMimeTypeGuesser.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php
FileinfoMimeTypeGuesser.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php
MimeTypeGuesser.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php
MimeTypeGuesserInterface.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesserInterface.php
MimeTypeTest.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/Exception/AccessDeniedException.php, line 19

Namespace

Symfony\Component\HttpFoundation\File\Exception
View source
class AccessDeniedException extends FileException {

  /**
   * Constructor.
   *
   * @param string $path The path to the accessed file
   */
  public function __construct($path) {
    parent::__construct(sprintf('The file %s could not be accessed', $path));
  }

}

Members