Skip to main content

Module error

Module error 

Source
Expand description

Typed error envelope for shell commands that need category handling in the renderer.

Donor: ViewRight error.rs ({code, message} with snake_case codes). The wire shape is {"code": "broker_denied", "message": "..."} and a Tauri command returning Result<_, ShellError> rejects its promise with exactly that object. Older shell commands still reject with plain strings; the bridge normalises both (ShellError in @rightkit/tauri-shell).

Enums§

ShellError

Functions§

broker_error
Classify a string error from the broker or file helpers, preserving the message text.