phpBB API Documentation
Class

phpbb\exception\http_exception

class http_exception extends runtime_exception implements HttpExceptionInterface

Class http_exception

Methods

__construct(integer $status_code, string $message = '', array $parameters = array(), Exception $previous = null, array $headers = array(), integer $code)

Constructor

array get_parameters()

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

from runtime_exception
getStatusCode()

{@inheritdoc}

getHeaders()

{@inheritdoc}

Details

at line 47
public __construct(integer $status_code, string $message = '', array $parameters = array(), Exception $previous = null, array $headers = array(), integer $code)

Constructor

Parameters

integer $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 exception used for the exception chaining.
array $headers Additional headers to set in the response.
integer $code The Exception code.

in runtime_exception at line 48
public array get_parameters()

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

Return Value

array

at line 58
public getStatusCode()

{@inheritdoc}

at line 66
public getHeaders()

{@inheritdoc}