Skip to main content

Module error

Module error 

Source
Expand description

Typed error envelope for workspace command failures.

Enums§

WorkspaceError
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 the map_err boundary instead of relying on the blanket From<String>, which would flatten every broker rejection to Other and lose the not-found/denied distinction.