structure saas with tools
This commit is contained in:
14
.venv/lib/python3.10/site-packages/mcp/shared/exceptions.py
Normal file
14
.venv/lib/python3.10/site-packages/mcp/shared/exceptions.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from mcp.types import ErrorData
|
||||
|
||||
|
||||
class McpError(Exception):
|
||||
"""
|
||||
Exception type raised when an error arrives over an MCP connection.
|
||||
"""
|
||||
|
||||
error: ErrorData
|
||||
|
||||
def __init__(self, error: ErrorData):
|
||||
"""Initialize McpError."""
|
||||
super().__init__(error.message)
|
||||
self.error = error
|
||||
Reference in New Issue
Block a user