Expand description
Exit code constants and error kind mapping for xchecker.
This module defines standardized exit codes for different failure modes
and provides mapping from XCheckerError to exit codes and error kinds.
§Exit Code Table
| Code | Constant | Description |
|---|---|---|
| 0 | SUCCESS | Operation completed successfully |
| 1 | INTERNAL | General/internal failure |
| 2 | CLI_ARGS | Invalid CLI arguments or configuration |
| 7 | PACKET_OVERFLOW | Input packet exceeded size limits |
| 8 | SECRET_DETECTED | Secret found in content (security) |
| 9 | LOCK_HELD | Another process holds the lock |
| 10 | PHASE_TIMEOUT | Phase execution timed out |
| 70 | CLAUDE_FAILURE | Claude CLI invocation failed |
Modules§
- codes
- Exit code constants for xchecker (legacy module for backward compatibility)
Structs§
- Exit
Code - Exit codes matching the documented exit code table.
Functions§
- error_
to_ exit_ code_ and_ kind - Convert
XCheckerErrorto (exit_code,error_kind) tuple