java.lang.Object
java.lang.Throwable
java.lang.Exception
org.shredzone.acme4j.exception.AcmeException
org.shredzone.acme4j.exception.AcmeServerException
org.shredzone.acme4j.exception.AcmeRateLimitedException
- All Implemented Interfaces:
Serializable
An exception that is thrown when a rate limit was exceeded.
- See Also:
-
Constructor Summary
ConstructorDescriptionAcmeRateLimitedException
(Problem problem, Instant retryAfter, Collection<URL> documents) Creates a newAcmeRateLimitedException
. -
Method Summary
Modifier and TypeMethodDescriptionCollection of URLs pointing to documents about the rate limit that was hit.Returns the moment the request is expected to succeed again.Methods inherited from class org.shredzone.acme4j.exception.AcmeServerException
getProblem, getType
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AcmeRateLimitedException
public AcmeRateLimitedException(Problem problem, @Nullable Instant retryAfter, @Nullable Collection<URL> documents) Creates a newAcmeRateLimitedException
.- Parameters:
problem
-Problem
that caused the exceptionretryAfter
- The moment the request is expected to succeed again, may benull
if not knowndocuments
- URLs pointing to documents about the rate limit that was hit
-
-
Method Details
-
getRetryAfter
Returns the moment the request is expected to succeed again.null
if this moment is not known. -
getDocuments
Collection of URLs pointing to documents about the rate limit that was hit.null
if the server did not provide such URLs.
-