Skip to content
1 min read · 44 words

Variable: E_CLAUDE_CODE_CLI_TURN_FAILED ​

ts
const E_CLAUDE_CODE_CLI_TURN_FAILED: CreatedException<[string, string]>;

Defined in: src/batteries/llm/claude_code_cli/exceptions.ts:146

Thrown when Claude's terminal result reports isError: true for a terminal error subtype other than error_max_turns, notably CLI-native budget exhaustion from --max-budget-usd. The error_max_turns subtype is the normal successful completion signal for this adapter's fixed single-turn dispatch contract.