-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrors.go
More file actions
20 lines (14 loc) · 697 Bytes
/
Copy patherrors.go
File metadata and controls
20 lines (14 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package netpool
import "errors"
var (
// ErrPoolClosed is returned when attempting to use a closed pool
ErrPoolClosed = errors.New("netpool: pool is closed")
// ErrInvalidConn is returned when a nil connection is provided
ErrInvalidConn = errors.New("netpool: invalid connection")
// ErrInvalidConfig is returned when pool configuration is invalid
ErrInvalidConfig = errors.New("netpool: invalid configuration")
// ErrConnReturned is returned when connection already returned
ErrConnReturned = errors.New("connection already returned")
// ErrDialTimeout is returned when dial operation exceeds the configured timeout
ErrDialTimeout = errors.New("netpool: dial timeout exceeded")
)