export function isRetryableException()

in src/errors/Errors.ts [172:177]


export function isRetryableException(e: AWSError, onCommit: boolean): boolean {
    const canSdkRetry: boolean = onCommit ? false : e.retryable;

    return isRetryableStatusCode(e) || isOccConflictException(e) || canSdkRetry ||
        (isInvalidSessionException(e) && !isTransactionExpiredException(e));
}