diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RateLimitExceededException.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RateLimitExceededException.java index 9ca296ad3..776acd6c8 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RateLimitExceededException.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RateLimitExceededException.java @@ -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; } diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RetryLaterException.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RetryLaterException.java index c7c0afffa..ff19efc11 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RetryLaterException.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/RetryLaterException.java @@ -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(); }