src/Leevel/Kernel/Runtime.php
protected function renderExceptionWithWhoops(Exception $e): string
    {
        $whoops = $this->makeWhoops();

        $prettyPage = new PrettyPageHandler();
        $prettyPage->handleUnconditionally(true);

        $whoops->pushHandler($prettyPage);

        return $whoops->handleException($e);
    }
protected function renderExceptionWithWhoops(Exception $e): string
    {
        $whoops = $this->makeWhoops();

        $prettyPage = new PrettyPageHandler();
        $prettyPage->handleUnconditionally(true);

        $whoops->pushHandler($prettyPage);

        return $whoops->handleException($e);
    }
Whoops 渲染异常.

@param \Exception $e

@return string