Skip to main content

Module error

Module error 

Source
Expand description

Error types for SaveContext CLI.

Provides structured error handling with:

  • Machine-readable error codes (ErrorCode)
  • Category-based exit codes (2=db, 3=not_found, 4=validation, etc.)
  • Retryability flags for agent self-correction
  • Context-aware recovery hints
  • Structured JSON output for piped / non-TTY consumers

Enums§

Error
Errors that can occur in SaveContext CLI operations.
ErrorCode
Machine-readable error codes grouped by category.

Type Aliases§

Result
Result type alias for SaveContext operations.