summaryrefslogtreecommitdiff
path: root/error.go
blob: a8f9e5393d0c59027cc0c689ea6d77ef4f1bdef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package roadrunner

// WorkerError is communication/process error.
type WorkerError string

// Error converts error context to string
func (we WorkerError) Error() string {
	return string(we)
}

// JobError is job level error (no worker halt)
type JobError []byte

// Error converts error context to string
func (je JobError) Error() string {
	return string(je)
}