Coverage for src / sql_tool / core / exit_codes.py: 100%
10 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-02-14 14:55 -0500
« prev ^ index » next coverage.py v7.13.4, created at 2026-02-14 14:55 -0500
1"""Standard exit codes for SQL Tool.
3Exit codes follow Unix conventions and CODE-PY-CLI-001 pattern.
4"""
6from enum import IntEnum
9class ExitCode(IntEnum):
10 """Exit codes for SQL Tool commands."""
12 SUCCESS = 0
13 GENERAL_ERROR = 1
14 USAGE_ERROR = 2
15 INPUT_ERROR = 3
16 OUTPUT_ERROR = 4
17 NETWORK_ERROR = 5
18 TIMEOUT = 6
19 CONFIG_ERROR = 7