for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2020.
* @author Paweł Antosiak <[email protected]>
*/
declare(strict_types=1);
namespace Gorynych\Http\Exception;
class HttpException extends \RuntimeException
{
private int $statusCode;
public function __construct(int $statusCode, string $message = '', int $code = 0, \Throwable $previous = null)
$this->statusCode = $statusCode;
parent::__construct($message, $code, $previous);
}
public function getStatusCode(): int
return $this->statusCode;