-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
37 lines (26 loc) · 1.15 KB
/
errors.go
File metadata and controls
37 lines (26 loc) · 1.15 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
package pgotask
import "errors"
// Database
/// Transactions
var ErrTxCreation = errors.New("couldn't create Tx")
var ErrTxCommit = errors.New("couldn't commit Tx")
/// Queries
var ErrExecQuery = errors.New("couldn't execute query")
var ErrScanRow = errors.New("couldn't scan row")
// Scheduler
/// Fatal
var ErrAlreadyRunning = errors.New("scheduler already running")
var ErrInitSchema = errors.New("couldn't init db schema")
var ErrQueryPending = errors.New("couldn't query pending tasks")
var ErrQueryLock = errors.New("couldn't lock tasks")
/// Dispatch
var ErrAbortDispatch = errors.New("dispatch aborted")
var ErrUnhandledTaskType = errors.New("handler for task type not found")
var ErrPushFailure = errors.New("couldn't push failure")
var ErrDeleteScheduled = errors.New("couldn't delete scheduled task")
var ErrExcededTimeline = errors.New("task exceded timeline")
var ErrRetryCooldown = errors.New("couldn't set retry cooldown")
var ErrMarkCompleted = errors.New("couldn't mark completed task")
var ErrDeleteDuplicates = errors.New("couldn't delete duplicate idempotent tasks")
/// Schedule task
var ErrScheduleFailed = errors.New("couldn't schedule task")