public EnforcedResponseException::__construct(Response $response, $message = "", $code = 0, \Exception $previous = NULL)
Constructs a new enforced response exception.
\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
public function __construct(Response $response, $message = "", $code = 0, \Exception $previous = NULL) { parent::__construct($message, $code, $previous); $this->response = $response; }
© 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!EnforcedResponseException.php/function/EnforcedResponseException::__construct/8.1.x