src/Leevel/Kernel/Runtime.php
protected function convertExceptionToResponse(Exception $e): IResponse
    {
        return new Response(
            $this->renderExceptionContent($e),
            $this->normalizeStatusCode($e),
            $this->normalizeHeaders($e)
        );
    }
protected function convertExceptionToResponse(Exception $e): IResponse
    {
        return new Response(
            $this->renderExceptionContent($e),
            $this->normalizeStatusCode($e),
            $this->normalizeHeaders($e)
        );
    }
异常创建响应.

@param \Exception $e

@return \Leevel\Http\IResponse