Skip to main content

Module error

Module error 

Source
Expand description

Typed error hierarchy (ApiError, ConfigError, DownloadError, RommError). Typed error hierarchy for the romm-cli library.

Domain enums use thiserror; the binary boundary converts [RommError] to user-facing messages and exit codes via [user_message], [exit_code], and exit.

Modules§

exit
Process exit codes for scripting (see README “Exit codes”).

Enums§

ApiError
HTTP and API-layer failures from crate::client::RommClient.
ConfigError
Configuration, token file, and keyring failures.
DownloadError
Download, path resolution, and transfer failures.
RommError
Composed public error type for library consumers.
TuiErrorHint
Hint for TUI error toast behavior.

Functions§

exit_code
Maps a RommError to a process exit code for the romm-cli binary.
from_anyhow
Converts a binary-boundary anyhow::Error into RommError, preserving typed domain errors that were bubbled via ? from legacy command handlers.
tui_hint
TUI behavior hint for an error.
user_message
Actionable user-facing message (short, no full error chain).