sched/job/error.go

20 lines
342 B
Go
Raw Permalink Normal View History

package job
//ErrorJobPanic Error returned when a Job panics
type ErrorJobPanic struct {
Message string
}
func (e ErrorJobPanic) Error() string {
return e.Message
}
//ErrorJobStarted Error returned when a has already started.
type ErrorJobStarted struct {
Message string
}
func (e ErrorJobStarted) Error() string {
return e.Message
}