__construct() public method

public __construct ( $message, Response $response, Exception $previous = null )
$response Symfony\Component\HttpFoundation\Response
$previous Exception
Example #1
0
 /**
  * @param string $message
  * @param string $html
  * @param int $statusCode
  */
 public function __construct($message, $html = null, $statusCode = Response::HTTP_OK)
 {
     parent::__construct($message, new Response($html, $statusCode));
 }