Skip to main content

Module error

Module error 

Source
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§

ApsErrorResponse
Common APS API error response structure
InterpretedError
Parsed and interpreted APS error

Enums§

ExitCode
Exit codes following standard conventions

Traits§

ResultExt
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