Split contract package
This commit is contained in:
12
internal/contract/error.go
Normal file
12
internal/contract/error.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user