Closed kamilsk closed 5 years ago
the concept:
func Whitelist(errors ...error) Strategy { whitelist := classifier.WhitelistClassifier(errors) return func(attempt uint, err error) bool { return whitelist.Classify(err) == classifier.Retry } }
also, add the example from example_error_test.go
example_error_test.go
won't do
the concept: