You are here

class FileTransferException in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/FileTransfer/FileTransferException.php \Drupal\Core\FileTransfer\FileTransferException
  2. 9 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

1 file declares its use of FileTransferException
Updater.php in core/lib/Drupal/Core/Updater/Updater.php
3 string references to 'FileTransferException'
drupal7.php in core/modules/tracker/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.
drupal7.php in core/modules/rdf/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.
drupal7.php in core/modules/migrate_drupal/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.

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