You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
382 B
23 lines
382 B
package redishandle
|
|
|
|
import "errors"
|
|
|
|
type RedisError struct {
|
|
Err error
|
|
Supple string
|
|
}
|
|
|
|
func NewError(err error, supple string) *RedisError {
|
|
return &RedisError{
|
|
Err: err,
|
|
Supple: supple,
|
|
}
|
|
}
|
|
|
|
func (e *RedisError) String() string {
|
|
return e.Err.Error() + ";" + e.Supple
|
|
}
|
|
|
|
var (
|
|
ErrNotEnoughOpNumsInList = errors.New("there are not enough op times in the list")
|
|
)
|
|
|