forked from shunfei/cronsun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
20 lines (15 loc) · 972 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cronsun
import "errors"
var (
ErrNotFound = errors.New("Record not found.")
ErrValueMayChanged = errors.New("The value has been changed by others on this time.")
ErrEmptyJobName = errors.New("Name of job is empty.")
ErrEmptyJobCommand = errors.New("Command of job is empty.")
ErrIllegalJobId = errors.New("Invalid id that includes illegal characters such as '/' '\\'.")
ErrIllegalJobGroupName = errors.New("Invalid job group name that includes illegal characters such as '/' '\\'.")
ErrEmptyNodeGroupName = errors.New("Name of node group is empty.")
ErrIllegalNodeGroupId = errors.New("Invalid node group id that includes illegal characters such as '/'.")
ErrSecurityInvalidCmd = errors.New("Security error: the suffix of script file is not on the whitelist.")
ErrSecurityInvalidUser = errors.New("Security error: the user is not on the whitelist.")
ErrNilRule = errors.New("invalid job rule, empty timer.")
)