public function BrokenPostRequestException::__construct
public BrokenPostRequestException::__construct($max_upload_size, $message = NULL, \Exception $previous = NULL, $code = 0)
Constructs a new BrokenPostRequestException.
Parameters
string $max_upload_size: The size of the maximum upload size.
string $message: The internal exception message.
\Exception $previous: The previous exception.
int $code: The internal exception code.
Overrides BadRequestHttpException::__construct
File
- core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php, line 31
Class
- BrokenPostRequestException
- Defines an exception used, when the POST HTTP body is broken.
Namespace
Drupal\Core\Form\ExceptionCode
public function __construct($max_upload_size, $message = NULL, \Exception $previous = NULL, $code = 0) { parent::__construct($message, $previous, $code); $this->size = $max_upload_size; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!Exception!BrokenPostRequestException.php/function/BrokenPostRequestException::__construct/8.1.x