diff options
Diffstat (limited to 'error.go')
-rw-r--r-- | error.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/error.go b/error.go new file mode 100644 index 00000000..a8f9e539 --- /dev/null +++ b/error.go @@ -0,0 +1,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) +} |