Mark an error as safe or unsafe to retry.
Sets a non-enumerable symbol on the error itself, leaving its class and shape untouched, so it is safe to apply to a provider SDK's own error.
stampRetryable<T>(error: T, retryable: boolean): T| Name | Type | Description |
|---|---|---|
error* | T | The error to mark. Non-objects are returned untouched. |
retryable* | boolean |
|