MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / Code

Method Code

internal/httpapi/errors.go:60–60  ·  view source on GitHub ↗

Code returns the machine-branchable code (used by tests and middleware).

()

Source from the content-addressed store, hash-verified

58
59// Code returns the machine-branchable code (used by tests and middleware).
60func (e *ErrorEnvelope) Code() string { return e.Err.Code }
61
62// NewError builds an envelope with an explicit machine-branchable code.
63// Prefer this over the status-only helpers when the caller should be able

Callers 3

Calls

no outgoing calls

Tested by 3