src/Viserio/Component/Foundation/Console/Kernel.php
protected function renderException($output, Throwable $exception): void
    {
        if ($output instanceof ConsoleOutput) {
            $output = $output->getErrorOutput();
        }

        $container = $this->getContainer();

        if ($container->has(ConsoleHandlerContract::class)) {
            $container->get(ConsoleHandlerContract::class)
                ->render(new SymfonyConsoleOutput($output), $exception);
        } else {
            throw $exception;
        }
    }
protected function renderException($output, Throwable $exception): void
    {
        if ($output instanceof ConsoleOutput) {
            $output = $output->getErrorOutput();
        }

        $container = $this->getContainer();

        if ($container->has(ConsoleHandlerContract::class)) {
            $container->get(ConsoleHandlerContract::class)
                ->render(new SymfonyConsoleOutput($output), $exception);
        } else {
            throw $exception;
        }
    }
Report the exception to the exception handler.

@param null|\Symfony\Component\Console\Output\OutputInterface $output
@param \Throwable                                             $exception

@return void