# create_error_message

> **Function** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/errors/create_error_message)

## Signature

```python
create_error_message(
    *,
    message: str,
    error_code: ErrorCode,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/b674dd46228b0928a6bc0ad9a3d8e38ef28f6895/libs/langgraph/langgraph/errors.py#L37)