HttpException

class HttpException extends RuntimeException implements HttpExceptionInterface

HttpException.

Methods

__construct($statusCode, $message = null, Exception $previous = null, array $headers = array(), $code)
int getStatusCode()

Returns the status code.

array getHeaders()

Returns response headers.

setHeaders(array $headers)

Set response headers.

Details

__construct($statusCode, $message = null, Exception $previous = null, array $headers = array(), $code)

Parameters

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

int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code

array getHeaders()

Returns response headers.

Return Value

array Response headers

setHeaders(array $headers)

Set response headers.

Parameters

array $headers Response headers
doc_Symfony
2016-10-28 06:20:44
Comments
Leave a Comment

Please login to continue.