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. - Config
Error - Configuration, token file, and keyring failures.
- Download
Error - Download, path resolution, and transfer failures.
- Romm
Error - Composed public error type for library consumers.
- TuiError
Hint - Hint for TUI error toast behavior.
Functions§
- exit_
code - Maps a
RommErrorto a process exit code for theromm-clibinary. - from_
anyhow - Converts a binary-boundary
anyhow::ErrorintoRommError, 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).