-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.go
24 lines (20 loc) · 1.04 KB
/
error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package gta
import "errors"
var (
// ErrZeroRowsAffected represents zero rows affected in a database operation.
ErrZeroRowsAffected = errors.New("zero rows affected")
// ErrUnexpected represents unexpected error occurred.
ErrUnexpected = errors.New("unexpected")
// ErrTaskNotFound represents certain task not found.
ErrTaskNotFound = errors.New("task not found")
// ErrOption represents option is invalid.
ErrOption = errors.New("option invalid")
// ErrDefNilHandler represents Handler in the task definition is nil.
ErrDefNilHandler = errors.New("definition handler is nil")
// ErrDefEmptyPrimaryKey represents primaryKey in the task definition is empty.
ErrDefEmptyPrimaryKey = errors.New("definition primary key is empty")
// ErrDefInvalidLoopInterval represents loopInterval in the task definition is invalid.
ErrDefInvalidLoopInterval = errors.New("definition loop interval is invalid")
// ErrDefInvalidArgument represents argument in the task definition is invalid.
ErrDefInvalidArgument = errors.New("definition argument is invalid")
)