class FileWriteException

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

Exception thrown when file cannot be written to disk.

Hierarchy

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

Expanded class hierarchy of FileWriteException

4 files declare their use of FileWriteException
file.module in core/modules/file/file.module
Defines a "managed_file" Form API field and a "file" field for Field module.
FileSystem.php in core/lib/Drupal/Core/File/FileSystem.php
FileUploadForm.php in core/modules/media_library/src/Form/FileUploadForm.php
FileUploadHandler.php in core/modules/file/src/Upload/FileUploadHandler.php

File

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

Namespace

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

}

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