---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/claude_code_cli/exceptions/variables/E_CLAUDE_CODE_CLI_TURN_FAILED.md
description: >-
  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.
---

# 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](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/exceptions.ts#L146)

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.
