public class AcmeRateLimitExceededException extends AcmeServerException
| Constructor and Description |
|---|
AcmeRateLimitExceededException(String type,
String detail,
Instant retryAfter,
Collection<URI> documents)
Creates a new
AcmeRateLimitExceededException. |
| Modifier and Type | Method and Description |
|---|---|
Collection<URI> |
getDocuments()
Collection of URIs pointing to documents about the rate limit that was hit.
|
Instant |
getRetryAfter()
Returns the moment the request is expected to succeed again.
|
getAcmeErrorType, getTypeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AcmeRateLimitExceededException(String type, String detail, Instant retryAfter, Collection<URI> documents)
AcmeRateLimitExceededException.type - System readable error type (here
"urn:ietf:params:acme:error:rateLimited")detail - Human readable error messageretryAfter - The moment the request is expected to succeed again, may be null
if not knowndocuments - URIs pointing to documents about the rate limit that was hitpublic Instant getRetryAfter()
null if this
moment is not known.public Collection<URI> getDocuments()
null if the server did not provide such URIs.Copyright © 2015–2019. All rights reserved.