---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/anthropic_messages/exceptions/variables/E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW.md
description: >-
  Thrown when the total token weight of the resolved request exceeds
  `contextWindow`.
---

# Variable: E\_ANTHROPIC\_MESSAGES\_CONTEXT\_OVERFLOW

```ts
const E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW: CreatedException<
  [number, number, string, string]
>;
```

Defined in: [src/batteries/llm/anthropic\_messages/exceptions.ts:34](https://github.com/NHTIO/ADK/blob/v1.20260726.0/src/src/batteries/llm/anthropic_messages/exceptions.ts#L34)

Thrown when the total token weight of the resolved request exceeds `contextWindow`.
