Module errors

Module errors 

Source
Expand description

Cross-process error catalog.

AgentMuxError is the single typed error returned by RPC handlers and surfaced to the frontend. Each variant carries a stable AmxCode (e.g. AMX-IO-001) so the renderer’s translation table can look up a user-friendly message + recovery hint without caring about the wire-format details.

See docs/specs/SPEC_ERROR_CATALOG_2026_05_17.md for the full design and migration plan.

Enums§

AgentMuxError
The typed error returned by RPC handlers. Serializes to: { "code": "AMX-IO-001", "message": "device out of space ...", "details": { ... } }
AmxCode
Stable string codes shipped to the frontend. The variant name in AgentMuxError is for Rust callers; the &'static str returned by AmxCode::as_str() is the contract with the catalog at frontend/app/errors/catalog.ts.