RetryModifiers interface
Properties that can modify the behavior of the retry policy.
Properties
error |
Indicates to throw this error instead of retrying. |
redirect |
Indicates to retry against this URL. |
retry |
Controls whether to retry in a given number of milliseconds. If provided, a new retry will be attempted. |
skip |
If true, allows skipping the current strategy from running on the retry policy. |
Property Details
errorToThrow
Indicates to throw this error instead of retrying.
errorToThrow?: RestError
Property Value
redirectTo
Indicates to retry against this URL.
redirectTo?: string
Property Value
string
retryAfterInMs
Controls whether to retry in a given number of milliseconds. If provided, a new retry will be attempted.
retryAfterInMs?: number
Property Value
number
skipStrategy
If true, allows skipping the current strategy from running on the retry policy.
skipStrategy?: boolean
Property Value
boolean