-
Notifications
You must be signed in to change notification settings - Fork 62
/
errors.go
25 lines (23 loc) · 874 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
package dat
import (
"errors"
)
var (
// ErrNotFound ...
ErrNotFound = errors.New("not found")
// ErrNotUTF8 ...
ErrNotUTF8 = errors.New("invalid UTF-8")
// ErrInvalidSliceLength ...
ErrInvalidSliceLength = errors.New("length of slice is 0. length must be >= 1")
// ErrInvalidSliceValue ...
ErrInvalidSliceValue = errors.New("trying to interpolate invalid slice value into query")
// ErrInvalidValue ...
ErrInvalidValue = errors.New("trying to interpolate invalid value into query")
// ErrArgumentMismatch ...
ErrArgumentMismatch = errors.New("mismatch between ? (placeholders) and arguments")
// ErrTimedout occurs when a query times out.
ErrTimedout = errors.New("query timed out")
// ErrInvalidOperation occurs when an invalid operation occurs like cancelling
// an operation without a procPID.
ErrInvalidOperation = errors.New("invalid operation")
)