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

Method WithDetails

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

WithDetails attaches structured details and returns the envelope for fluent construction.

(details any)

Source from the content-addressed store, hash-verified

70// WithDetails attaches structured details and returns the envelope for
71// fluent construction.
72func (e *ErrorEnvelope) WithDetails(details any) *ErrorEnvelope {
73 e.Err.Details = details
74 return e
75}
76
77// defaultCodeForStatus maps an HTTP status to a stable default `code` for
78// the cases where a handler (or Huma's built-in validation) produced only a

Callers 6

limitEnvelopeFunction · 0.80
recipientCountErrorFunction · 0.80
checkSendLimitMethod · 0.80
rateLimitMethod · 0.80
writeRawErrorFunction · 0.80

Calls

no outgoing calls

Tested by 1