Expand description
Binary-level error handling for netspeed-cli.
This module contains the error presentation logic that is specific to
the binary entry point. Library users should use the Error type
directly without this presentation layer.
§Architecture
- Exit codes following sysexits.h conventions
- Machine-readable error output for JSON/JSONL formats
- User-friendly error messages with suggestions
Modules§
- exit_
codes - Exit codes following sysexits.h conventions.
Structs§
Functions§
- is_
config_ error - Check if the error is a configuration/validation error.
- is_
list_ sentinel - Check if the error is the “–list was shown” sentinel.
- is_
network_ error - Check if the error is network-related.
- machine_
error_ format - Determine machine-readable error format from CLI args.
- machine_
error_ identity - Map error to machine-readable code and category.
- print_
error - Print a user-friendly error message.
- print_
machine_ error - Output machine-readable error.
- render_
machine_ error - Render error to machine-readable string.
- select_
exit_ code - Select exit code based on error type.
- suggestion_
for_ error - Get suggestion text for error type.