mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 21:44:18 +02:00
Update client.mdx: ClientError namespace
`ClientError` is in the `fastmcp.exceptions` namespace, not `fastmcp.client`.
This commit is contained in:
parent
97ef80c624
commit
db41238e94
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ For consistent behavior across all transports, we recommend explicitly setting t
|
|||
|
||||
#### Error Handling
|
||||
|
||||
When a `call_tool` request results in an error on the server (e.g., the tool function raised an exception), the `client.call_tool()` method will raise a `fastmcp.client.ClientError`.
|
||||
When a `call_tool` request results in an error on the server (e.g., the tool function raised an exception), the `client.call_tool()` method will raise a `fastmcp.exceptions.ClientError`.
|
||||
|
||||
```python
|
||||
async def safe_call_tool():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue