blob: 7c91a92b823517dcc287eb8fff84c5f14ed401b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package roadrunner
// ExecError is job level error (no WorkerProcess halt), wraps at top
// of error context
type ExecError []byte
// Error converts error context to string
func (te ExecError) Error() string {
return string(te)
}
// WorkerError is WorkerProcess related error
type WorkerError struct {
// Worker
Worker WorkerBase
// Caused error
Caused error
}
// Error converts error context to string
func (e WorkerError) Error() string {
return e.Caused.Error()
}
|