FileTransferException.php

Same filename in other branches
  1. 8.9.x core/lib/Drupal/Core/FileTransfer/FileTransferException.php
  2. 10 core/lib/Drupal/Core/FileTransfer/FileTransferException.php
  3. 11.x core/lib/Drupal/Core/FileTransfer/FileTransferException.php

Namespace

Drupal\Core\FileTransfer

File

core/lib/Drupal/Core/FileTransfer/FileTransferException.php

View source
<?php

namespace Drupal\Core\FileTransfer;


/**
 * Exception thrown for file transfer errors.
 */
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;
    }

}

Classes

Title Deprecated Summary
FileTransferException Exception thrown for file transfer errors.

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