public class RetryFailureException extends Exception
RetryPolicy.RetryPolicy.run(Retryable),
Serialized Form| Constructor and Description |
|---|
RetryFailureException(int attemptNo,
long delayMs)
Constructs a
RetryFailureException without a specified exception
cause. |
RetryFailureException(Throwable cause,
int attemptNo,
long delayMs)
Constructs a
RetryFailureException with the specified exception
that was the cause of this exception. |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttemptNo()
Returns the attempt number on which the exception was thrown.
|
long |
getDelayMs()
Returns the delay (in milliseconds) from the previous invocation attempt.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RetryFailureException(Throwable cause, int attemptNo, long delayMs)
RetryFailureException with the specified exception
that was the cause of this exception.cause - The exception that was the cause of this exception.attemptNo - The attempt number on which the exception was thrown.delayMs - The delay (in milliseconds) from the previous invocation
attempt.public RetryFailureException(int attemptNo,
long delayMs)
RetryFailureException without a specified exception
cause.attemptNo - The attempt number on which the exception was thrown.delayMs - The delay (in milliseconds) from the previous invocation
attempt.public int getAttemptNo()
public long getDelayMs()
Copyright © 2020 LightStep. All rights reserved.