forked from couchbase/gocb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.go
68 lines (58 loc) · 2.43 KB
/
error.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package gocb
import (
"errors"
"github.com/couchbase/gocb/gocbcore"
)
type clientError struct {
message string
}
func (e clientError) Error() string {
return e.message
}
var (
ErrNotEnoughReplicas = errors.New("Not enough replicas to match durability requirements.")
ErrDurabilityTimeout = errors.New("Failed to meet durability requirements in time.")
ErrNoResults = errors.New("No results returned.")
ErrNoOpenBuckets = errors.New("You must open a bucket before you can perform cluster level operations.")
ErrIndexInvalidName = errors.New("An invalid index name was specified.")
ErrIndexNoFields = errors.New("You must specify at least one field to index.")
ErrIndexNotFound = errors.New("The index specified does not exist.")
ErrIndexAlreadyExists = errors.New("The index specified already exists.")
ErrDispatchFail = gocbcore.ErrDispatchFail
ErrBadHosts = gocbcore.ErrBadHosts
ErrProtocol = gocbcore.ErrProtocol
ErrNoReplicas = gocbcore.ErrNoReplicas
ErrInvalidServer = gocbcore.ErrInvalidServer
ErrInvalidVBucket = gocbcore.ErrInvalidVBucket
ErrInvalidReplica = gocbcore.ErrInvalidReplica
ErrInvalidCert = gocbcore.ErrInvalidCert
ErrShutdown = gocbcore.ErrShutdown
ErrOverload = gocbcore.ErrOverload
ErrNetwork = gocbcore.ErrNetwork
ErrTimeout = gocbcore.ErrTimeout
ErrStreamClosed = gocbcore.ErrStreamClosed
ErrStreamStateChanged = gocbcore.ErrStreamStateChanged
ErrStreamDisconnected = gocbcore.ErrStreamDisconnected
ErrStreamTooSlow = gocbcore.ErrStreamTooSlow
ErrKeyNotFound = gocbcore.ErrKeyNotFound
ErrKeyExists = gocbcore.ErrKeyExists
ErrTooBig = gocbcore.ErrTooBig
ErrInvalidArgs = gocbcore.ErrInvalidArgs
ErrNotStored = gocbcore.ErrNotStored
ErrBadDelta = gocbcore.ErrBadDelta
ErrNotMyVBucket = gocbcore.ErrNotMyVBucket
ErrNoBucket = gocbcore.ErrNoBucket
ErrAuthStale = gocbcore.ErrAuthStale
ErrAuthError = gocbcore.ErrAuthError
ErrAuthContinue = gocbcore.ErrAuthContinue
ErrRangeError = gocbcore.ErrRangeError
ErrRollback = gocbcore.ErrRollback
ErrAccessError = gocbcore.ErrAccessError
ErrNotInitialized = gocbcore.ErrNotInitialized
ErrUnknownCommand = gocbcore.ErrUnknownCommand
ErrOutOfMemory = gocbcore.ErrOutOfMemory
ErrNotSupported = gocbcore.ErrNotSupported
ErrInternalError = gocbcore.ErrInternalError
ErrBusy = gocbcore.ErrBusy
ErrTmpFail = gocbcore.ErrTmpFail
)