diff options
author | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
commit | e229d83dea4bbe9d0cfe6569c8fbe239690aafb9 (patch) | |
tree | 2d4887ffdb167d660b705415f0617458490d0b9f /error.go |
init
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) +} |