class FileExistsException

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

Exception thrown when a file unexpectedly exists.

Hierarchy

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

Expanded class hierarchy of FileExistsException

10 files declare their use of FileExistsException
CopyTest.php in core/modules/file/tests/src/Kernel/CopyTest.php
file.module in core/modules/file/file.module
Defines a "managed_file" Form API field and a "file" field for Field module.
FileCopyTest.php in core/tests/Drupal/KernelTests/Core/File/FileCopyTest.php
FileRepositoryTest.php in core/modules/file/tests/src/Kernel/FileRepositoryTest.php
FileSystem.php in core/lib/Drupal/Core/File/FileSystem.php

... See full list

File

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

Namespace

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

}

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