package contract import "fmt" type JobNotFoundError struct { State string Message string } func (e *JobNotFoundError) Error() string { return fmt.Sprintf("%s - %s", e.State, e.Message) } type NoopJobError struct { State string } func (e *NoopJobError) Error() string { return fmt.Sprintf("%s: no op job occur", e.State) }