# AnthropicContextOverflowError

> **Class** in `langchain_anthropic`

📖 [View in docs](https://reference.langchain.com/python/langchain-anthropic/chat_models/AnthropicContextOverflowError)

BadRequestError raised when input exceeds Anthropic's context limit.

## Signature

```python
AnthropicContextOverflowError()
```

## Extends

- `anthropic.BadRequestError`
- `ContextOverflowError`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/6fb37dba71da807af60aa7b909f71f0625a666bf/libs/partners/anthropic/langchain_anthropic/chat_models.py#L691)