- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.shredzone.acme4j.exception.AcmeException
-
- org.shredzone.acme4j.exception.AcmeRetryAfterException
-
- All Implemented Interfaces:
Serializable
public class AcmeRetryAfterException extends AcmeException
A server side process has not been completed yet. The server also provides an estimate of when the process is expected to complete.Note: Prefer to use
AcmeJsonResource.fetch()
. InvokingAcmeJsonResource.update()
and catching this exception is unnecessary complicated and a legacy from acme4j v2 which will disappear in a future release.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AcmeRetryAfterException(String msg, Instant retryAfter)
Creates a newAcmeRetryAfterException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
getRetryAfter()
Returns the retry-after instant returned by the server.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AcmeRetryAfterException
public AcmeRetryAfterException(String msg, Instant retryAfter)
Creates a newAcmeRetryAfterException
.- Parameters:
msg
- Error detailsretryAfter
- retry-after date returned by the server
-
-
Method Detail
-
getRetryAfter
public Instant getRetryAfter()
Returns the retry-after instant returned by the server. This is only an estimate of when a retry attempt might succeed.
-
-