mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 17:38:04 +01:00
Don't generate stack traces for rate limit exceptions.
This commit is contained in:
committed by
Jon Chambers
parent
f0a8b5a54a
commit
bf32b766a5
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user