Expand description
Error handling and exit code management
Provides standardized exit codes for CI/CD scripting:
- 0: Success
- 2: Invalid arguments / validation failure
- 3: Auth failure
- 4: Not found
- 5: Remote/API error
- 6: Internal error
Also provides APS error interpretation with human-readable explanations.
Structs§
- ApsError
Response - Common APS API error response structure
- Interpreted
Error - Parsed and interpreted APS error
Enums§
- Exit
Code - Exit codes following standard conventions
Traits§
- Result
Ext - Extension trait for Result to easily exit with appropriate code
Functions§
- format_
interpreted_ error - Format an interpreted error for display
- interpret_
error - Parse and interpret an APS API error response