function FileTransferException::__construct

Constructs a FileTransferException object.

Parameters

string $message: Exception message.

int $code: Exception code.

array $arguments: Arguments to be used in this exception.

File

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

Class

FileTransferException
Exception thrown for file transfer errors.

Namespace

Drupal\Core\FileTransfer

Code

public function __construct($message, $code = 0, $arguments = []) {
  @trigger_error(__CLASS__ . ' is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED);
  parent::__construct($message, $code);
  $this->arguments = $arguments;
}

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