Skip to main content

Module error

Module error 

Source
Expand description

Typed error envelope used by every cloud HTTP response, MCP tool result, and CLI exit-with-error path.

Spec: FR-030, Constitution V. The wire shape is intentionally additive — new context keys do NOT break old callers — and every variant ships a human- readable remediation field telling the caller exactly what to do next.

Structs§

Error
The wire-format error envelope: { error: { code, message, remediation, context } }.
ErrorBuilder
Builder for Error. Forces message + remediation to be set by panicking in build() if either is missing — every constructable error MUST be actionable.

Enums§

ErrorCode
Canonical machine-readable error codes.

Type Aliases§

ErrorContext
Per-error free-form context map.
Result
Crate-local Result alias parameterized on the typed Error.