class BrokenPostRequestException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php \Drupal\Core\Form\Exception\BrokenPostRequestException
Defines an exception used, when the POST HTTP body is broken.
Hierarchy
- class \Symfony\Component\HttpKernel\Exception\HttpException extends \Symfony\Component\HttpKernel\Exception\RuntimeException implements HttpExceptionInterface
- class \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
- class \Drupal\Core\Form\Exception\BrokenPostRequestException
- class \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
Expanded class hierarchy of BrokenPostRequestException
3 files declare their use of BrokenPostRequestException
- FormAjaxSubscriber.php in core/
lib/ Drupal/ Core/ Form/ EventSubscriber/ FormAjaxSubscriber.php - Contains \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber.
- FormAjaxSubscriberTest.php in core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php - Contains \Drupal\Tests\Core\Form\EventSubscriber\FormAjaxSubscriberTest.
- FormBuilder.php in core/
lib/ Drupal/ Core/ Form/ FormBuilder.php - Contains \Drupal\Core\Form\FormBuilder.
File
- core/
lib/ Drupal/ Core/ Form/ Exception/ BrokenPostRequestException.php, line 15 - Contains \Drupal\Core\Form\Exception\BrokenPostRequestException.
Namespace
Drupal\Core\Form\ExceptionView source
class BrokenPostRequestException extends BadRequestHttpException {
/**
* The maximum upload size.
*
* @var string
*/
protected $size;
/**
* Constructs a new BrokenPostRequestException.
*
* @param string $max_upload_size
* The size of the maximum upload size.
* @param string $message
* The internal exception message.
* @param \Exception $previous
* The previous exception.
* @param int $code
* The internal exception code.
*/
public function __construct($max_upload_size, $message = NULL, \Exception $previous = NULL, $code = 0) {
parent::__construct($message, $previous, $code);
$this->size = $max_upload_size;
}
/**
* Returns the maximum upload size.
*
* @return string
* A translated string representation of the size of the file size limit
* based on the PHP upload_max_filesize and post_max_size.
*/
public function getSize() {
return $this->size;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BrokenPostRequestException:: |
protected | property | The maximum upload size. | |
BrokenPostRequestException:: |
public | function | Returns the maximum upload size. | |
BrokenPostRequestException:: |
public | function |
Constructs a new BrokenPostRequestException. Overrides BadRequestHttpException:: |
|
HttpException:: |
private | property | ||
HttpException:: |
private | property | ||
HttpException:: |
public | function |
Returns response headers. Overrides HttpExceptionInterface:: |
|
HttpException:: |
public | function |
Returns the status code. Overrides HttpExceptionInterface:: |