Lines Matching refs:exception
101 def _ShouldRetry(exception, retry_http_codes, argument
115 if isinstance(exception, other_retriable_errors):
118 if isinstance(exception, errors.HttpError):
119 if exception.code in retry_http_codes:
122 exception.code, retry_http_codes, str(exception))
125 type(exception),
127 str(exception))
131 def _TranslateError(exception): argument
144 if isinstance(exception, gerrors.HttpError):
145 exception = errors.HttpError.CreateFromHttpError(exception)
146 if exception.code == errors.HTTP_NOT_FOUND_CODE:
147 exception = errors.ResourceNotFoundError(
148 exception.code, str(exception))
149 return exception
245 def _CallBack(request_id, response, exception): argument
246 results[request_id] = (response, self._TranslateError(exception))