-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
23 lines (16 loc) · 991 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
package pqxd
import "errors"
var (
// ErrNotSupported occurs when performed operation that is not supported in pqxd
ErrNotSupported = errors.New("pqxd: not supported this operation")
// ErrInvalidPreparedStatement occurs when the prepared statement is invalid
ErrInvalidPreparedStatement = errors.New("pqxd: invalid prepared statement")
// ErrStatementClosed occurs when the statement is closed
ErrStatementClosed = errors.New("pqxd: statement is closed")
// ErrTxDualBoot occurs when running more than one transaction at a time in a single connection
ErrTxDualBoot = errors.New("pqxd: cannot run more than transaction at a time in a single connection")
// ErrInvalidSyntaxOfQuery occurs when the query syntax is invalid
ErrInvalidSyntaxOfQuery = errors.New("pqxd: invalid syntax of query")
// ErrNotSupportedWithinTx occurs when performed operation that is not supported within transaction
ErrNotSupportedWithinTx = errors.New("pqxd: not supported within transaction")
)