HTTPErrorException

Extends \Exception

Throw an instance of `\HotMelt\HTTPErrorException` to break out of the regular controlf flow.

Methods

Intiailize an HTTP error exception object.

__construct(int $statusCode, string $message, array $headers = null) 

Arguments

$statusCode

int

An HTTP status code for this exception.

$message

string

An exception message.

$headers

array

Additional HTTP headers for this exception (optional).

Properties

The HTTP status code associated with this exception.

statusCode : 

An exception handler catching an instance of \HotMelt\HTTPErrorException should ensure that these headers are sent along with the response.

type

int

Any additional HTTP headers associated with this exception.

headers : 

An exception handler catching an instance of \HotMelt\HTTPErrorException should ensure that these headers are sent along with the response.

type

array