Expand description
Error handling and recovery for operations.
Provides error classification, user action selection, and dangerous operation confirmation. In a TUI/CLI context the actual prompting is handled by the caller — this module provides the types and logic.
Ported from opendev/core/runtime/monitoring/error_handler.py.
Structs§
- Error
Result - Result of error handling.
- Operation
Error - Information about an operation error for display/handling.
Enums§
- Error
Action - Actions user can take on error.
Functions§
- available_
actions - Build the list of available options for an operation error.
- is_
transient_ error - Classify whether an error is likely transient and worth retrying.
- resolve_
choice - Resolve a user’s choice character into an
ErrorResult.