HttpException
class HttpException extends RuntimeException implements HttpExceptionInterface
HttpException.
Methods
__construct($statusCode, $message = null, Exception $previous = null, array $headers = array(), $code) | ||
integer | getStatusCode() Returns the status code. | |
array | getHeaders() Returns response headers. |
Details
__construct($statusCode, $message = null, Exception $previous = null, array $headers = array(), $code)
Parameters
$statusCode | ||
$message | ||
Exception | $previous | |
array | $headers | |
$code |
integer getStatusCode()
Returns the status code.
Return Value
integer | An HTTP response status code |
array getHeaders()
Returns response headers.
Return Value
array | Response headers |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/HttpKernel/Exception/HttpException.html