private function getErrorBlock(\Throwable $exception, ?int $linePadding = null):string
    {
        // Renders the message
        $out = $this->getLine(get_class($exception), self::STYLE_BOLD | self::STYLE_ITALIC, $linePadding)
            .$this->getLine($exception->getMessage(), null, $linePadding);

        // Renders the position
        if ($this->options & self::OPT_RENDER_LOCATION) {
            $out .= $this->getLine($exception->getFile().':'.$exception->getLine(),
                    self::STYLE_ITALIC, $linePadding)
                .$this->getBlankLine();
        }

        // Renders the backtrace
        if ($this->options & self::OPT_RENDER_BACKTRACE) {
            $out .= $this->getLine("Backtrace",
                    self::STYLE_BOLD | self::STYLE_ITALIC,$linePadding + 2)
                .$this->getLine($exception->getTraceAsString(),
                    self::STYLE_ITALIC, $linePadding + 2);
        }

        return $out;
    }
private function getErrorBlock(\Throwable $exception, ?int $linePadding = null):string
    {
        // Renders the message
        $out = $this->getLine(get_class($exception), self::STYLE_BOLD | self::STYLE_ITALIC, $linePadding)
            .$this->getLine($exception->getMessage(), null, $linePadding);

        // Renders the position
        if ($this->options & self::OPT_RENDER_LOCATION) {
            $out .= $this->getLine($exception->getFile().':'.$exception->getLine(),
                    self::STYLE_ITALIC, $linePadding)
                .$this->getBlankLine();
        }

        // Renders the backtrace
        if ($this->options & self::OPT_RENDER_BACKTRACE) {
            $out .= $this->getLine("Backtrace",
                    self::STYLE_BOLD | self::STYLE_ITALIC,$linePadding + 2)
                .$this->getLine($exception->getTraceAsString(),
                    self::STYLE_ITALIC, $linePadding + 2);
        }

        return $out;
    }
private function getErrorBlock ( \ Throwable $ exception , ? int $ linePadding = null ) : string { // Renders the message $ out = $ this -> getLine ( get_class ( $ exception ) , self :: STYLE_BOLD | self :: STYLE_ITALIC , $ linePadding ) . $ this -> getLine ( $ exception -> getMessage ( ) , null , $ linePadding ) ; // Renders the position if ( $ this -> options & self :: OPT_RENDER_LOCATION ) { $ out .= $ this -> getLine ( $ exception -> getFile ( ) . ':' . $ exception -> getLine ( ) , self :: STYLE_ITALIC , $ linePadding ) . $ this -> getBlankLine ( ) ; } // Renders the backtrace if ( $ this -> options & self :: OPT_RENDER_BACKTRACE ) { $ out .= $ this -> getLine ( "Backtrace" , self :: STYLE_BOLD | self :: STYLE_ITALIC , $ linePadding + 2 ) . $ this -> getLine ( $ exception -> getTraceAsString ( ) , self :: STYLE_ITALIC , $ linePadding + 2 ) ; } return $ out ; }
Returns an error block.

@param \Throwable $exception
@param int|null $linePadding
@return string
Returns an error block .