code: private void handleRetryForStorageException(final StorageException exs) throws StorageException {
      retries++;
      if (retries > maxRetries) {
        throw new StorageException(
            exs.getCode(),
            "All "
                + maxRetries
                + " retries failed. Waited a total of "
                + totalWaitTime
                + " ms between attempts",
            exs);
      }
      sleepForAttempt(retries);
    }
docs: Records a retry attempt for the given StorageException, sleeping for an amount of time
  dependent on the attempt number. Throws a StorageException if we've exhausted all retries.
  
  @param exs The StorageException error that prompted this retry attempt.