class FileTransferException
Same name in other branches
- 7.x includes/filetransfer/filetransfer.inc \FileTransferException
- 9 core/lib/Drupal/Core/FileTransfer/FileTransferException.php \Drupal\Core\FileTransfer\FileTransferException
- 8.9.x core/lib/Drupal/Core/FileTransfer/FileTransferException.php \Drupal\Core\FileTransfer\FileTransferException
- 11.x 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\FileTransferView 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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FileTransferException::$arguments | public | property | Arguments to be used in this exception. |
FileTransferException::__construct | public | function | Constructs a FileTransferException object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.