func (errorType ErrorType) Newf(msg string, args ...interface{}) error {
	return customError{errorType: errorType, originalError: fmt.Errorf(msg, args...)}
}
New creates a new customError with formatted message
package distributedrediscluster
import (
	"fmt"
	"github.com/pkg/errors"
)
type ErrorType uint
const (
	NoType ErrorType = iota
	Requeue
	Kubernetes
	Redis
	Cluster
	StopRetry
)
type customError struct {
	errorType     ErrorType
	originalError error
}
func (errorType ErrorType) New(msg string) error {
	return customError{errorType: errorType, originalError: errors.New(msg)}
}