Class

Symfony\Component\HttpKernel\Exception\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

at line 24
public __construct($statusCode, $message = null, Exception $previous = null, array $headers = array(), $code)

Parameters

$statusCode
$message
Exception $previous
array $headers
$code

at line 32
public integer getStatusCode()

Returns the status code.

Return Value

integer An HTTP response status code

at line 37
public array getHeaders()

Returns response headers.

Return Value

array Response headers