sched/job/error.go
Sherif Abdel-Naby 78ecec0d3c Add Job Sub-package tests
Signed-off-by: Sherif Abdel-Naby <sherifabdlnaby@gmail.com>
2021-04-11 22:47:31 +02:00

19 lines
342 B
Go

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
}