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

Breadcrumb

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

class FileNotFoundException

Same name in this branch
  1. 11.1.x vendor/symfony/filesystem/Exception/FileNotFoundException.php \Symfony\Component\Filesystem\Exception\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
    • class \Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException extends \Symfony\Component\HttpFoundation\File\Exception\FileException

Expanded class hierarchy of FileNotFoundException

2 files declare their use of FileNotFoundException
File.php in vendor/symfony/http-foundation/File/File.php
UploadedFile.php in vendor/symfony/http-foundation/File/UploadedFile.php

File

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

Namespace

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

}

Members

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

API Navigation

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