Skip to content

Commit 5b7f328

Browse files
committed
Added retries for userRateLimitExceeded and rateLimitExceeded.
1 parent 9b6929b commit 5b7f328

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcloud-java-dns/src/main/java/com/google/gcloud/dns/DnsException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public class DnsException extends BaseServiceException {
3333
private static final Set<Error> RETRYABLE_ERRORS = ImmutableSet.of(
3434
new Error(500, null),
3535
new Error(502, null),
36-
new Error(503, null));
36+
new Error(503, null),
37+
new Error(null, "userRateLimitExceeded"),
38+
new Error(null, "rateLimitExceeded"));
3739
private static final long serialVersionUID = 490302380416260252L;
3840

3941
public DnsException(IOException exception) {

0 commit comments

Comments
 (0)