static throwInvalidPathError(path, error) {
    throw new Error(
      `Invalid path ${path}. ${error}\n` +
        `'Path' should be specified using the 'robots.txt' format.\n` +
        `Learn more about the 'robots.txt' format here:\n` +
        `https://developers.google.com/search/reference/robots_txt#url-matching-based-on-path-values`
    );
  }
@param {unknown} path
@param {string} error