# InvalidKeyException

> **Class** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/stores/InvalidKeyException)

Raised when a key is invalid; e.g., uses incorrect characters.

## Signature

```python
InvalidKeyException()
```

## Extends

- `LangChainException`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/8fec4e7ceee2c368b068c49f9fed453276e210e7/libs/core/langchain_core/stores.py#L290)