Skip to main content

Module errors

Module errors 

Source
Expand description

Presentation Layer Error Types

This module defines unified error handling for CLI commands following the error handling conventions documented in docs/contributing/error-handling.md.

§Design Principles

  • Clarity: Unambiguous error messages with specific context
  • Traceability: Full error chains preserved for debugging
  • Actionability: Clear instructions for resolution
  • Unified Structure: Single CommandError enum containing all command-specific errors

§Error Hierarchy

CommandError
└── Destroy(DestroyError)       # Destroy command errors
└── Exists(ExistsSubcommandError) # Exists command errors

Enums§

CommandError
Errors that can occur during CLI command execution