MCPcopy Index your code
hub / github.com/docker/docker-agent / ErrorWithCodeForSession

Function ErrorWithCodeForSession

pkg/runtime/event.go:288–295  ·  view source on GitHub ↗

ErrorWithCodeForSession creates an error event with a code and session ID. See ErrorForSession for the session-tagging rationale.

(sessionID, code, msg string)

Source from the content-addressed store, hash-verified

286// ErrorWithCodeForSession creates an error event with a code and session ID.
287// See ErrorForSession for the session-tagging rationale.
288func ErrorWithCodeForSession(sessionID, code, msg string) Event {
289 return &ErrorEvent{
290 Type: "error",
291 SessionID: sessionID,
292 Error: msg,
293 Code: code,
294 }
295}
296
297type ShellOutputEvent struct {
298 AgentContext

Callers 7

runHarnessAgentMethod · 0.85
runStreamLoopMethod · 0.85
runTurnMethod · 0.85
handleStreamErrorMethod · 0.85

Calls

no outgoing calls