src/Leevel/Kernel/Runtime.php
protected function getExceptionVars(Exception $e): array
    {
        return [
            'e'       => $e,
            'code'    => $this->normalizeStatusCode($e),
            'message' => $e->getMessage(),
            'type'    => get_class($e),
            'file'    => $this->filterPhysicalPath($e->getFile()),
            'line'    => $e->getLine(),
        ];
    }
protected function getExceptionVars(Exception $e): array
    {
        return [
            'e'       => $e,
            'code'    => $this->normalizeStatusCode($e),
            'message' => $e->getMessage(),
            'type'    => get_class($e),
            'file'    => $this->filterPhysicalPath($e->getFile()),
            'line'    => $e->getLine(),
        ];
    }
获取异常格式化变量.

@param \Exception $e

@return array