MCPcopy Index your code
hub / github.com/riverqueue/river / errorHandlerWrapper

Struct errorHandlerWrapper

rivertest/worker.go:296–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296type errorHandlerWrapper struct {
297 HandleErrorFunc func(ctx context.Context, job *rivertype.JobRow, err error) *jobexecutor.ErrorHandlerResult
298 HandlePanicFunc func(ctx context.Context, job *rivertype.JobRow, panicVal any, trace string) *jobexecutor.ErrorHandlerResult
299}
300
301func (h *errorHandlerWrapper) HandleError(ctx context.Context, job *rivertype.JobRow, err error) *jobexecutor.ErrorHandlerResult {
302 return h.HandleErrorFunc(ctx, job, err)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected