src/Leevel/Kernel/Runtime.php
protected function makeHttpResponse(Exception $e): IResponse
    {
        if ($this->container->debug()) {
            return $this->convertExceptionToResponse($e);
        }

        if (!$this->isHttpException($e)) {
            $e = new HttpException(500, $e->getMessage());
        }

        return $this->rendorWithHttpExceptionView($e);
    }
protected function makeHttpResponse(Exception $e): IResponse
    {
        if ($this->container->debug()) {
            return $this->convertExceptionToResponse($e);
        }

        if (!$this->isHttpException($e)) {
            $e = new HttpException(500, $e->getMessage());
        }

        return $this->rendorWithHttpExceptionView($e);
    }
HTTP 响应异常.

@param \Exception $e

@return \Leevel\Http\IResponse