function FileTransferException::__construct

Same name in other branches
  1. 7.x includes/filetransfer/filetransfer.inc \FileTransferException::__construct()
  2. 9 core/lib/Drupal/Core/FileTransfer/FileTransferException.php \Drupal\Core\FileTransfer\FileTransferException::__construct()
  3. 8.9.x core/lib/Drupal/Core/FileTransfer/FileTransferException.php \Drupal\Core\FileTransfer\FileTransferException::__construct()
  4. 11.x core/lib/Drupal/Core/FileTransfer/FileTransferException.php \Drupal\Core\FileTransfer\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 27

Class

FileTransferException
Exception thrown for file transfer errors.

Namespace

Drupal\Core\FileTransfer

Code

public function __construct($message, $code = 0, $arguments = []) {
    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.