Package io.getstream.exceptions
Class StreamRateLimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.getstream.exceptions.StreamException
io.getstream.exceptions.StreamApiException
io.getstream.exceptions.StreamRateLimitException
- All Implemented Interfaces:
Serializable
Thrown when the Stream API returns HTTP 429. Subclass of
StreamApiException that
additionally carries the parsed Retry-After header (RFC 7231 §7.1.3 — integer seconds or
HTTP-date).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.getstream.exceptions.StreamException
StreamException.ResponseData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theRetry-Afterdelta if the server sent a parseable value.Methods inherited from class io.getstream.exceptions.StreamApiException
getCode, getDetails, getExceptionFields, getMoreInfo, getRawResponseBody, getStatusCode, isUnrecoverableMethods inherited from class io.getstream.exceptions.StreamException
build, build, build, buildMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamRateLimitException
-
-
Method Details
-
getRetryAfter
Returns theRetry-Afterdelta if the server sent a parseable value.nullwhen the header was absent or unparseable.
-