Rename FastMCP to MCPServer (#1951)
This commit is contained in:
parent
4a2d83a0cb
commit
65c614e48e
1 changed files with 713 additions and 693 deletions
21
src/mcp/server/mcpserver/exceptions.py
Normal file
21
src/mcp/server/mcpserver/exceptions.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
"""Custom exceptions for MCPServer."""
|
||||
|
||||
|
||||
class MCPServerError(Exception):
|
||||
"""Base error for MCPServer."""
|
||||
|
||||
|
||||
class ValidationError(MCPServerError):
|
||||
"""Error in validating parameters or return values."""
|
||||
|
||||
|
||||
class ResourceError(MCPServerError):
|
||||
"""Error in resource operations."""
|
||||
|
||||
|
||||
class ToolError(MCPServerError):
|
||||
"""Error in tool operations."""
|
||||
|
||||
|
||||
class InvalidSignature(Exception):
|
||||
"""Invalid signature for use with MCPServer."""
|
||||
Loading…
Reference in a new issue