2024-06-18

This commit is contained in:
Juan Pablo Vial
2024-06-18 22:41:03 -04:00
parent 6169089475
commit 390e79ad6d
60 changed files with 3162 additions and 155 deletions

View File

@ -2,12 +2,18 @@
namespace Incoviba\Common\Implement\Exception;
use Throwable;
use HttpResponseException;
use Exception;
class HttpResponse extends HttpResponseException
class HttpResponse extends Exception
{
public function __construct($message = "", $code = 0, Throwable $previous = null)
public function __construct($reason = "", $message = "", $code = 0, Throwable $previous = null)
{
$this->reason = "HTTP Reason: {$reason}";
parent::__construct($message, $code, $previous);
}
protected string $reason;
public function getReason(): string
{
return $this->reason;
}
}