code: private void handleError(String errorMessage, Exception e) {
          // If we don't have any valid credentials to fall back on, then throw an exception
          if (credentials == null || expired())
              throw new SdkClientException(errorMessage, e);
  
          // Otherwise, just log the error and continuing using the current credentials
          LOG.debug(errorMessage, e);
      }
docs: Handles reporting or throwing an error encountered while requesting
  credentials from the Amazon EC2 endpoint. The Service could be
  briefly unavailable for a number of reasons, so
  we need to gracefully handle falling back to valid credentials if they're
  available, and only throw exceptions if we really can't recover.
  
  @param errorMessage
  A human readable description of the error.
  @param e
  The error that occurred.