-
Notifications
You must be signed in to change notification settings - Fork 22
/
errors.go
30 lines (26 loc) · 911 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package memcache
import "errors"
//connection error
var (
ErrBadConn = errors.New("Connect closed")
ErrNotConn = errors.New("Can't connect to server")
)
//memcached server returned error
var (
ErrNotFound = errors.New("Key not found")
ErrKeyExists = errors.New("Key exists")
ErrBig = errors.New("Value too long")
ErrInval = errors.New("Invalid arguments")
ErrNotStord = errors.New("Item not stored")
ErrDeltaBadVal = errors.New("Increment/Decrement on non-numberic value")
ErrAuthError = errors.New("Auth error")
ErrAuthContinue = errors.New("Auth continue")
ErrCmd = errors.New("Unkown commond")
ErrMem = errors.New("Out of memery")
ErrUnkown = errors.New("Unkown error")
)
var (
ErrInvalValue = errors.New("Unkown value type")
ErrInvalFormat = errors.New("Invalid format struct")
ErrNoFormat = errors.New("Format struct empty")
)