for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace uSILEX\Exception;
/**
* HttpException.
*
* @author Kris Wallsmith <[email protected]>
*/
class HttpException extends \RuntimeException implements HttpExceptionInterface
{
private $statusCode;
private $headers;
public function __construct(int $statusCode, string $message = null, \Exception $previous = null, array $headers = array(), ?int $code = 0)
$this->statusCode = $statusCode;
$this->headers = $headers;
parent::__construct($message, $code, $previous);
}
public function getStatusCode()
return $this->statusCode;
public function getHeaders()
return $this->headers;
* Set response headers.
* @param array $headers Response headers
public function setHeaders(array $headers)