src/Viserio/Component/Exception/Console/Handler.php
private function getFrameFromException(Throwable $exception): array
    {
        return [
            'file'     => $exception->getFile(),
            'line'     => $exception->getLine(),
            'class'    => \get_class($exception),
            'function' => '__construct',
            'args'     => [
                $exception->getMessage(),
            ],
        ];
    }
private function getFrameFromException(Throwable $exception): array
    {
        return [
            'file'     => $exception->getFile(),
            'line'     => $exception->getLine(),
            'class'    => \get_class($exception),
            'function' => '__construct',
            'args'     => [
                $exception->getMessage(),
            ],
        ];
    }
Given an exception, generates an array in the format
generated by Exception::getTrace().

@param \Throwable $exception

@return array