namespace Drupal\Core\File\Exception

Same name in other branches
  1. 9 Drupal\Core\File\Exception
  2. 8.9.x Drupal\Core\File\Exception
  3. 10 Drupal\Core\File\Exception
Object name File name Summary
DirectoryNotReadyException core/lib/Drupal/Core/File/Exception/DirectoryNotReadyException.php Exception thrown when a file's destination directory is not ready.
FileException core/lib/Drupal/Core/File/Exception/FileException.php Base class for exceptions related to file handling operations.
FileExistsException core/lib/Drupal/Core/File/Exception/FileExistsException.php Exception thrown when a file unexpectedly exists.
FileNotExistsException core/lib/Drupal/Core/File/Exception/FileNotExistsException.php Exception thrown when a file is expected to exist but does not.
FileWriteException core/lib/Drupal/Core/File/Exception/FileWriteException.php Exception thrown when file cannot be written to disk.
InvalidStreamWrapperException core/lib/Drupal/Core/File/Exception/InvalidStreamWrapperException.php Exception thrown when a file's stream wrapper is invalid.
NotRegularDirectoryException core/lib/Drupal/Core/File/Exception/NotRegularDirectoryException.php Exception thrown when a target is not a regular directory (e.g. a file).
NotRegularFileException core/lib/Drupal/Core/File/Exception/NotRegularFileException.php Exception thrown when a target is not a regular file (e.g. a directory).

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