# InvalidModuleError

> **Class** in `langgraph.checkpoint`

📖 [View in docs](https://reference.langchain.com/python/langgraph.checkpoint/serde/jsonplus/InvalidModuleError)

Exception raised when a module is not in the allowlist.

## Signature

```python
InvalidModuleError(
    self,
    message: str,
)
```

## Extends

- `Exception`

## Constructors

```python
__init__(
    self,
    message: str,
)
```

| Name | Type |
|------|------|
| `message` | `str` |


## Properties

- `message`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/aa322c13cd5f16a3f6254a931a4104e412cd687c/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py#L862)