You are here

class FileTransferException in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/FileTransfer/FileTransferException.php \Drupal\Core\FileTransfer\FileTransferException

Exception thrown for file transfer errors.

Hierarchy

  • class \Drupal\Core\FileTransfer\FileTransferException extends \Drupal\Core\FileTransfer\RuntimeException

Expanded class hierarchy of FileTransferException

2 files declare their use of FileTransferException
FileTransferTest.php in core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
Updater.php in core/lib/Drupal/Core/Updater/Updater.php

File

core/lib/Drupal/Core/FileTransfer/FileTransferException.php, line 8

Namespace

Drupal\Core\FileTransfer
View source
class FileTransferException extends \RuntimeException {

  /**
   * Arguments to be used in this exception.
   *
   * @var array
   */
  public $arguments;

  /**
   * Constructs a FileTransferException object.
   *
   * @param string $message
   *   Exception message.
   * @param int $code
   *   Exception code.
   * @param array $arguments
   *   Arguments to be used in this exception.
   */
  public function __construct($message, $code = 0, $arguments = []) {
    parent::__construct($message, $code);
    $this->arguments = $arguments;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FileTransferException::$arguments public property Arguments to be used in this exception.
FileTransferException::__construct public function Constructs a FileTransferException object.