// +---------------------------------------------------------------------- declare (strict_types = 1); namespace think\exception; use think\Response; /** * HTTP响应异常 */ class HttpResponseException extends \RuntimeException { public function __construct(protected Response $response) { } public function getResponse() { return $this->response; } }