# async_gateway_error_handler

> **Function** in `langchain_ibm`

📖 [View in docs](https://reference.langchain.com/python/langchain-ibm/utils/async_gateway_error_handler)

Async decorator to catch ApiRequestFailure on Model Gateway calls.

Log a uniform warning when the Model Gateway is misused.

## Signature

```python
async_gateway_error_handler(
    func: Callable[..., Any],
) -> Callable[..., Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-ibm/blob/68e9b09f8cbc8d2310e57a6a7eb51cde0956a3b0/libs/ibm/langchain_ibm/utils.py#L115)