Class AccountRateLimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.irurueta.authserver.authorization.api.web.account.AccountRateLimitExceededException
- All Implemented Interfaces:
Serializable
A client address or an e-mail address made more account requests than its window allows. It is answered with
429 Too Many Requests.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DurationHow long until the window ends and requests are accepted again.private static final longSerialization version. -
Constructor Summary
ConstructorsConstructorDescriptionAccountRateLimitExceededException(Duration retryAfter) Creates the exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns how long until requests are accepted again.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version.- See Also:
-
retryAfter
How long until the window ends and requests are accepted again.
-
-
Constructor Details
-
AccountRateLimitExceededException
Creates the exception.- Parameters:
retryAfter- how long until requests are accepted again.
-
-
Method Details
-
getRetryAfter
Returns how long until requests are accepted again.- Returns:
- the remaining time of the window.
-