Package africa.sendbyte.exceptions
Class RateLimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
africa.sendbyte.exceptions.SendByteException
africa.sendbyte.exceptions.RateLimitException
- All Implemented Interfaces:
Serializable
rate_limit_exceeded (429): the per-key request rate was exceeded.
getRetryAfterSeconds() exposes the value of the Retry-After
response header when present, so you can back off before retrying.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSeconds to wait before retrying, from theRetry-Afterheader, ornull.Methods inherited from class africa.sendbyte.exceptions.SendByteException
fromApiError, getCode, getDocsUrl, getRequestId, getStatusMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RateLimitException
-
-
Method Details
-
getRetryAfterSeconds
Seconds to wait before retrying, from theRetry-Afterheader, ornull.
-