Package com.sendly.exceptions
Class RateLimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sendly.exceptions.SendlyException
com.sendly.exceptions.RateLimitException
- All Implemented Interfaces:
Serializable
Thrown when the rate limit is exceeded.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRateLimitException(String message) RateLimitException(String message, int retryAfter) -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of seconds to wait before retrying.Methods inherited from class com.sendly.exceptions.SendlyException
getErrorCode, getStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RateLimitException
-
RateLimitException
-
-
Method Details
-
getRetryAfter
public int getRetryAfter()Get the number of seconds to wait before retrying.
-