This commit is contained in:
2025-08-13 18:31:52 +08:00
parent 17ad88608b
commit 275713f893
77 changed files with 10658 additions and 178 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace app\exception;
use RuntimeException;
use support\Response;
class HttpResponseException extends RuntimeException
{
protected $response;
// 接收 Response 实例作为参数
public function __construct(Response $response)
{
$this->response = $response;
}
// 获取响应对象
public function getResponse()
{
return $this->response;
}
}