class BrokenPostRequestException extends BadRequestHttpException (View source)

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

Properties

protected string $size

The maximum upload size.

Methods

__construct(string $max_upload_size, string $message = '', Exception $previous = NULL, int $code = 0)

Constructs a new BrokenPostRequestException.

string
getSize()

Returns the maximum upload size.

Details

__construct(string $max_upload_size, string $message = '', Exception $previous = NULL, int $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.

string getSize()

Returns the maximum upload size.

Return Value

string

A translated string representation of the size of the file size limit based on the PHP upload_max_filesize and post_max_size.