class FileNotFoundException

Thrown when a file was not found

@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 FileNotFoundException

7 files declare their use of FileNotFoundException
File.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/File.php
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

... See full list

File

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

Namespace

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

  /**
   * Constructor.
   *
   * @param string $path The path to the file that was not found
   */
  public function __construct($path) {
    parent::__construct(sprintf('The file "%s" does not exist', $path));
  }

}

Members