func (b *Backoff) isNonRetriableError(rerr *Error) bool {
	if rerr == nil {
		return false
	}

	for _, err := range b.NonRetriableErrors {
		if strings.Contains(rerr.RawError.Error(), err) {
			return true
		}
	}

	return false
}
// isNonRetriableError returns true if the Error is one of NonRetriableErrors.
isNonRetriableError returns true if the Error is one of NonRetriableErrors.
// isNonRetriableError returns true if the Error is one of NonRetriableErrors .
func (b *Backoff) isNonRetriableError(rerr *Error) bool {
	if rerr == nil {
		return false
	}
	for _, err := range b.NonRetriableErrors {
		if strings.Contains(rerr.RawError.Error(), err) {
			return true
		}
	}
	return false
}
func ( b * Backoff ) isNonRetriableError ( rerr * Error ) bool { if rerr == nil { return false } for _ , err := range b . NonRetriableErrors { if strings . Contains ( rerr . RawError . Error ( ) , err ) { return true } } return false }
isNonRetriableError returns true if the Error is one of NonRetriableErrors.
isNonRetriableError returns true if the Error is one of NonRetriableErrors .