ai-station/.venv/lib/python3.12/site-packages/mcp/server/fastmcp/exceptions.py

22 lines
435 B
Python
Raw Normal View History

2025-12-25 14:54:33 +00:00
"""Custom exceptions for FastMCP."""
class FastMCPError(Exception):
"""Base error for FastMCP."""
class ValidationError(FastMCPError):
"""Error in validating parameters or return values."""
class ResourceError(FastMCPError):
"""Error in resource operations."""
class ToolError(FastMCPError):
"""Error in tool operations."""
class InvalidSignature(Exception):
"""Invalid signature for use with FastMCP."""