forked from chrisyxlee/pgxpoolmock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherrors.go
18 lines (16 loc) · 947 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package pgxpoolmock
import (
"errors"
)
var (
ErrToBeCalledWithPointers = errors.New("expected scan to be called with pointers")
ErrUnexpectedNilVal = errors.New("unexpected nil value for arg")
ErrScanExpectedToHaveSameNumberOfArgs = errors.New("expected scan to be called with same number of arguments")
ErrCantSetDestination = errors.New("cannot set destination value")
ErrNotSupported = errors.New("not supported")
ErrMustBeAPointer = errors.New("destination argument must be a pointer")
ErrIncorrectArgNumber = errors.New("incorrect argument number")
ErrUnexpectedArg = errors.New("scan with unexpected arg")
ErrEndBatchResult = errors.New("batch already closed") // Use the error to signify the end of a batch result.
ErrNoBatchResult = errors.New("no result")
)