EnforcedResponseException::__construct

public EnforcedResponseException::__construct(Response $response, $message = "", $code = 0, \Exception $previous = NULL)

Constructs a new enforced response exception.

Parameters

\Symfony\Component\HttpFoundation\Response $response: The response to be enforced.

string $message: (optional) The exception message.

int $code: (optional) A user defined exception code.

\Exception $previous: (optional) The previous exception for nested exceptions

File

core/lib/Drupal/Core/Form/EnforcedResponseException.php, line 31

Class

EnforcedResponseException
Custom exception to break out of the main request and enforce a response.

Namespace

Drupal\Core\Form

Code

public function __construct(Response $response, $message = "", $code = 0, \Exception $previous = NULL) {
  parent::__construct($message, $code, $previous);

  $this->response = $response;
}
doc_Drupal
2016-10-29 09:04:10
Comments
Leave a Comment

Please login to continue.