class http_exception extends runtime_exception implements HttpExceptionInterface

Class http_exception

Methods

__construct(int $status_code, string $message = "", array $parameters = array(), Exception $previous = null, array $headers = array(), int $code = 0)

Constructor

array
get_parameters()

Return the arguments associated with the message if it's a language var.

getStatusCode()

{@inheritdoc}

getHeaders()

{@inheritdoc}

Details

at line 47
__construct(int $status_code, string $message = "", array $parameters = array(), Exception $previous = null, array $headers = array(), int $code = 0)

Constructor

Parameters

int $status_code

The http status code.

string $message

The Exception message to throw (must be a language variable).

array $parameters

The parameters to use with the language var.

Exception $previous

The previous runtime_exception used for the runtime_exception chaining.

array $headers

Additional headers to set in the response.

int $code

The Exception code.

in runtime_exception at line 48
array get_parameters()

Return the arguments associated with the message if it's a language var.

Return Value

array

at line 58
getStatusCode()

{@inheritdoc}

at line 66
getHeaders()

{@inheritdoc}