---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/exceptions/variables/E_TRANSFORMERS_JS_CONTEXT_OVERFLOW.md
description: >-
  Thrown when the total token weight of the resolved request exceeds
  `contextWindow`. Only raised when `tokenEncoding` is non-null.
---

# Variable: E\_TRANSFORMERS\_JS\_CONTEXT\_OVERFLOW

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

Defined in: [src/batteries/llm/transformers\_js/exceptions.ts:29](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/transformers_js/exceptions.ts#L29)

Thrown when the total token weight of the resolved request exceeds `contextWindow`. Only raised
when `tokenEncoding` is non-null.
