class HTTPException extends Exception implements HttpExceptionInterface

An Exception with an HTTP error code, the message of which is visible to the user

Methods

__construct(null|string $message = null, int $code, Exception $previous = null)

Construct new Exception

int
getStatusCode()

The HTTP error code that the response should include

array
getHeaders()

Headers to be included in the response

Details

at line line 30
__construct(null|string $message = null, int $code, Exception $previous = null)

Construct new Exception

Parameters

null|string $message The Exception's message (null for the default one)
int $code The Exception's code
Exception $previous The previous exception

at line line 48
int getStatusCode()

The HTTP error code that the response should include

Return Value

int

at line line 57
array getHeaders()

Headers to be included in the response

Return Value

array