Skip to main content

Module exit_codes

Module exit_codes 

Source
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

CodeConstantDescription
0SUCCESSOperation completed successfully
1INTERNALGeneral/internal failure
2CLI_ARGSInvalid CLI arguments or configuration
7PACKET_OVERFLOWInput packet exceeded size limits
8SECRET_DETECTEDSecret found in content (security)
9LOCK_HELDAnother process holds the lock
10PHASE_TIMEOUTPhase execution timed out
70CLAUDE_FAILUREClaude CLI invocation failed

Modules§

codes
Exit code constants for xchecker (legacy module for backward compatibility)

Structs§

ExitCode
Exit codes matching the documented exit code table.

Functions§

error_to_exit_code_and_kind
Convert XCheckerError to (exit_code, error_kind) tuple