function BrokenPostRequestException::__construct

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php \Drupal\Core\Form\Exception\BrokenPostRequestException::__construct()
  2. 8.9.x core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php \Drupal\Core\Form\Exception\BrokenPostRequestException::__construct()
  3. 10 core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php \Drupal\Core\Form\Exception\BrokenPostRequestException::__construct()

Constructs a new BrokenPostRequestException.

Parameters

int $max_upload_size: The size of the maximum upload size in bytes.

string $message: The internal exception message.

\Exception|null $previous: The previous exception.

int $code: The internal exception code.

File

core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php, line 33

Class

BrokenPostRequestException
Defines an exception used, when the POST HTTP body is broken.

Namespace

Drupal\Core\Form\Exception

Code

public function __construct(int $max_upload_size, string $message = '', ?\Exception $previous = NULL, int $code = 0) {
    parent::__construct($message, $previous, $code);
    $this->size = $max_upload_size;
}

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