/// <summary> /// Determines if an AmazonServiceException is a throttling error /// </summary> /// <param name="exception">The current exception to check.</param> /// <returns>true if it is a throttling error else false.</returns> public virtual bool IsThrottlingError(Exception exception) { var serviceException = exception as AmazonServiceException; return(serviceException?.Retryable?.Throttling == true || ThrottlingErrorCodes.Contains(serviceException?.ErrorCode)); }