Expand description
Typed error envelope for workspace command failures.
Enums§
- Workspace
Error - Typed error codes for frontend-facing command failures. The serialized shape
(
{"code": "...", "message": "..."}) is the contract the renderer classifies on.
Functions§
- broker_
error - Classify a broker or document string error into the right envelope variant, preserving the
exact message text. Grant and document backends return
Result<_, String>, so command sites call this at themap_errboundary instead of relying on the blanketFrom<String>, which would flatten every broker rejection toOtherand lose the not-found/denied distinction.