1 | import { isClockSkewError, isRetryableByTrait, isThrottlingError, isTransientError, } from "@aws-sdk/service-error-classification";
|
2 | export const defaultRetryDecider = (error) => {
|
3 | if (!error) {
|
4 | return false;
|
5 | }
|
6 | return isRetryableByTrait(error) || isClockSkewError(error) || isThrottlingError(error) || isTransientError(error);
|
7 | };
|