-
Notifications
You must be signed in to change notification settings - Fork 1
/
error.go
21 lines (18 loc) · 854 Bytes
/
error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package queue
import "errors"
var (
ErrNoConfig = errors.New("no config provided")
ErrNoCapacity = errors.New("capacity must be greater than zero")
ErrNoWorker = errors.New("no worker provided")
ErrNoWorkers = errors.New("no workers available")
ErrNoQueue = errors.New("no queue provided")
ErrQueueClosed = errors.New("queue closed")
ErrSchedMinGtMax = errors.New("min workers greater than max")
ErrSchedZeroMax = errors.New("max workers must be greater than 0")
ErrSchedBadRange = errors.New("schedule range has bad format")
ErrSchedBadTime = errors.New("bad time provided")
ErrSchedBadHour = errors.New("hour outside range 0..23")
ErrSchedBadMin = errors.New("minute outside range 0..59")
ErrSchedBadSec = errors.New("second outside range 0..59")
ErrSchedBadMsec = errors.New("millisecond outside range 0..999")
)