-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
23 lines (17 loc) · 840 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package schedule
// ErrorOutdatedInvalidCron is used to represent a cron that has entered an invalid state or is outdated.
type ErrorOutdatedInvalidCron string
// CronOutdatedInvalidError is a constant equivalent of the ErrorOutdatedInvalidCron error.
const CronOutdatedInvalidError = ErrorOutdatedInvalidCron("schedule: outdated or invalid CronExpression")
// Error produces a string message of this error.
func (e ErrorOutdatedInvalidCron) Error() string {
return string(e)
}
// ErrorOutdated is used to represent a schedule that became outdated.
type ErrorOutdated string
// OutdatedError is a constant equivalent of the ErrorOutdated error.
const OutdatedError = ErrorOutdated("schedule: outdated or invalid Schedule")
// Error produces a string message of this error.
func (e ErrorOutdated) Error() string {
return string(e)
}