# ModelError

> **Class** in `langchain_core`

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

Base exception for failures related to model invocation.

Subclasses correspond to conditions that model providers report consistently,
keyed to the HTTP status they surface it with, so the same condition maps to
the same exception type regardless of provider.

Provider integrations raise subclasses that also inherit from the provider
SDK's own exception type, so code catching either continues to work.

## Signature

```python
ModelError()
```

## Extends

- `LangChainException`

## Properties

- `is_retryable`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/04ac76c07ec173a44e3e57de54861d0b637e3299/libs/core/langchain_core/exceptions.py#L68)