src/Viserio/Component/Exception/Console/Handler.php
public function render(ConsoleOutputContract $output, Throwable $exception): void
    {
        $exceptionMessage = $exception->getMessage();
        $exceptionName    = \get_class($exception);

        $output->writeln('');
        $output->writeln(\sprintf(
            '<bg=red;options=bold>%s</> : <comment>%s</>',
            $exceptionName,
            $exceptionMessage
        ));
        $output->writeln('');

        $this->renderEditor($output, $exception);
        $this->renderTrace($output, $exception);
    }
public function render(ConsoleOutputContract $output, Throwable $exception): void
    {
        $exceptionMessage = $exception->getMessage();
        $exceptionName    = \get_class($exception);

        $output->writeln('');
        $output->writeln(\sprintf(
            '<bg=red;options=bold>%s</> : <comment>%s</>',
            $exceptionName,
            $exceptionMessage
        ));
        $output->writeln('');

        $this->renderEditor($output, $exception);
        $this->renderTrace($output, $exception);
    }
Render an exception to the console.

@param \Viserio\Component\Contract\Exception\ConsoleOutput $output
@param \Throwable                                          $exception

@return void