Don't generate stack traces for rate limit exceptions.

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2021-05-07 10:44:31 -04:00
1 parent f0a8b5a54a
commit bf32b766a5
2 files changed
+3 -4

No files matched your search

@@ -11,12 +11,11 @@ public class RateLimitExceededException extends Exception {
private final Duration retryDuration;
public RateLimitExceededException(final Duration retryDuration) {
super();
this.retryDuration = retryDuration;
this(null, retryDuration);
}
public RateLimitExceededException(final String message, final Duration retryDuration) {
super(message);
super(message, null, true, false);
this.retryDuration = retryDuration;
}
@@ -11,7 +11,7 @@ public class RetryLaterException extends Exception {
private final Duration backoffDuration;
public RetryLaterException(RateLimitExceededException e) {
super(e);
super(null, e, true, false);
this.backoffDuration = e.getRetryDuration();
}