class FileNotExistsException

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/File/Exception/FileNotExistsException.php \Drupal\Core\File\Exception\FileNotExistsException
  2. 10 core/lib/Drupal/Core/File/Exception/FileNotExistsException.php \Drupal\Core\File\Exception\FileNotExistsException
  3. 11.x core/lib/Drupal/Core/File/Exception/FileNotExistsException.php \Drupal\Core\File\Exception\FileNotExistsException

Exception thrown when a file is expected to exist but does not.

Hierarchy

  • class \Drupal\Core\File\Exception\FileException extends \Drupal\Core\File\Exception\RuntimeException

Expanded class hierarchy of FileNotExistsException

4 files declare their use of FileNotExistsException
FileCopyTest.php in core/tests/Drupal/KernelTests/Core/File/FileCopyTest.php
FileMoveTest.php in core/tests/Drupal/KernelTests/Core/File/FileMoveTest.php
FileSystem.php in core/lib/Drupal/Core/File/FileSystem.php
FileSystemTest.php in core/tests/Drupal/KernelTests/Core/File/FileSystemTest.php

File

core/lib/Drupal/Core/File/Exception/FileNotExistsException.php, line 8

Namespace

Drupal\Core\File\Exception
View source
class FileNotExistsException extends FileException {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.