code: 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
          );
      }
docs: Method prints passed error to the console.
  @param \Throwable $error Throwable error or exception.
  @param bool $withTime Flag to print with previous timestamp.
  @param string|null $fontColor The font color.
  @param string|null $bgColor The background color.
  @return void