parameters: (self, attempt_number, response, caught_exception)
docstring: Determine if retry criteria matches.
  
          Note that either ``response`` is not None and ``caught_exception`` is
          None or ``response`` is None and ``caught_exception`` is not None.
  
          :type attempt_number: int
          :param attempt_number: The total number of times we've attempted
              to send the request.
  
          :param response: The HTTP response (if one was received).
  
          :type caught_exception: Exception
          :param caught_exception: Any exception that was caught while trying to
              send the HTTP response.
  
          :return: True, if the retry criteria matches (and therefore a retry
              should occur.  False if the criteria does not match.
docstring_summary: Determine if retry criteria matches.
docstring_tokens: Determine if retry criteria matches .
function: def __call__(self, attempt_number, response, caught_exception):
          """Determine if retry criteria matches.
  
          Note that either ``response`` is not None and ``caught_exception`` is
          None or ``response`` is None and ``caught_exception`` is not None.
  
          :type attempt_number: int
          :param attempt_number: The total number of times we've attempted
              to send the request.
  
          :param response: The HTTP response (if one was received).
  
          :type caught_exception: Exception
          :param caught_exception: Any exception that was caught while trying to
              send the HTTP response.
  
          :return: True, if the retry criteria matches (and therefore a retry
              should occur.  False if the criteria does not match.
  
          """
          # The default implementation allows subclasses to not have to check
          # whether or not response is None or not.
          if response is not None:
              return self._check_response(attempt_number, response)
          elif caught_exception is not None:
              return self._check_caught_exception(
                  attempt_number, caught_exception)
          else:
              raise ValueError("Both response and caught_exception are None.")
function_tokens: def __call__ ( self , attempt_number , response , caught_exception ) : # The default implementation allows subclasses to not have to check # whether or not response is None or not. if response is not None : return self . _check_response ( attempt_number , response ) elif caught_exception is not None : return self . _check_caught_exception ( attempt_number , caught_exception ) else : raise ValueError ( "Both response and caught_exception are None." )