protected function printError(
        \Throwable $error,
        bool $withTime = true,
        ?string $fontColor = null,
        ?string $bgColor = self::BG_COLOR_MAP['red']
    ): void {
        $shift = $withTime ? "\t\t" : '';
        $this->print(
            $this->getColoredMsg(
                'Error: '.$error->getMessage(),
                $fontColor,
                $bgColor
            ).\PHP_EOL
            .$shift.$this->getColoredMsg(
                'File: '.$error->getFile(),
                $fontColor,
                $bgColor
            ).\PHP_EOL
            .$shift.$this->getColoredMsg(
                'Line: '.$error->getLine(),
                $fontColor,
                $bgColor
            ),
            $withTime
        );
    }