MCPcopy
hub / github.com/docker/docker-agent / AddError

Method AddError

pkg/session/store.go:120–120  ·  view source on GitHub ↗

AddError appends a recorded error item to a session at the next position. Persisting failures lets them survive a reload and travel with a JSON export.

(ctx context.Context, sessionID string, e *Error)

Source from the content-addressed store, hash-verified

118 // AddError appends a recorded error item to a session at the next position.
119 // Persisting failures lets them survive a reload and travel with a JSON export.
120 AddError(ctx context.Context, sessionID string, e *Error) error
121
122 // === Granular metadata updates ===
123

Callers 3

AddErrorMethod · 0.65
OnEventMethod · 0.65

Implementers 3

InMemorySessionStorepkg/session/store.go
SQLiteSessionStorepkg/session/store.go
RemoteSessionStorepkg/runtime/remote_runtime.go

Calls

no outgoing calls

Tested by 1