Files
evo-ai/.venv/lib/python3.10/site-packages/mcp/shared/exceptions.py
2025-04-25 15:30:54 -03:00

15 lines
316 B
Python

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