Skip to main content

Module error

Module error 

Source
Expand description

Error handling module for Aperture CLI

This module provides a consolidated error handling system that categorizes all application errors into 9 distinct kinds. The design follows these principles:

  1. Error Consolidation: All errors are mapped to one of 9 ErrorKind categories
  2. Structured Context: Each error can include structured JSON details and suggestions
  3. Builder Pattern: ErrorContext provides fluent builder methods for error construction
  4. JSON Support: All errors can be serialized to JSON for programmatic consumption

Structs§

ErrorContext
Additional context for consolidated errors
JsonError
JSON representation of an error for structured output

Enums§

Error
ErrorKind
Error categories for consolidated error handling