java.lang.Object
java.lang.Throwable
java.lang.Exception
org.shredzone.acme4j.exception.AcmeException
org.shredzone.acme4j.exception.AcmeServerException
org.shredzone.acme4j.exception.AcmeRateLimitedException
- Alle implementierten Schnittstellen:
Serializable
A rate limit was exceeded. If provided by the server, it also includes the earliest
time at which a new attempt will be accepted, and a reference to a document that
further explains the rate limit that was exceeded.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAcmeRateLimitedException(Problem problem, Instant retryAfter, Collection<URL> documents) Creates a newAcmeRateLimitedException. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCollection of URLs pointing to documents about the rate limit that was hit.Returns the instant of time the request is expected to succeed again.Von Klasse geerbte Methoden org.shredzone.acme4j.exception.AcmeServerException
getProblem, getTypeVon Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
AcmeRateLimitedException
public AcmeRateLimitedException(Problem problem, @Nullable Instant retryAfter, @Nullable Collection<URL> documents) Creates a newAcmeRateLimitedException.- Parameter:
problem-Problemthat caused the exceptionretryAfter- The instant of time that the request is expected to succeed again, may benullif not knowndocuments- URLs pointing to documents about the rate limit that was hit, may benullif not known
-
-
Methodendetails
-
getRetryAfter
Returns the instant of time the request is expected to succeed again. Empty if this moment is not known. -
getDocuments
Collection of URLs pointing to documents about the rate limit that was hit. Empty if the server did not provide such URLs.
-