All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist-es.retryDecider.js Maven / Gradle / Ivy

import { isClockSkewError, isRetryableByTrait, isThrottlingError, isTransientError, } from "@smithy/service-error-classification";
export const defaultRetryDecider = (error) => {
    if (!error) {
        return false;
    }
    return isRetryableByTrait(error) || isClockSkewError(error) || isThrottlingError(error) || isTransientError(error);
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy