Spaces:
Sleeping
Sleeping
Download src/fastmcp/exceptions.py from purecipher/xsecuremcp: direct link, hf CLI and curl.
- Browser
- Download file 744 Bytes
-
https://huggingface.co/spaces/purecipher/xsecuremcp/resolve/main/src/fastmcp/exceptions.py
- Command line
-
hf download hf://spaces/purecipher/xsecuremcp/src/fastmcp/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/purecipher/xsecuremcp/resolve/main/src/fastmcp/exceptions.py
744 Bytes
| """Custom exceptions for FastMCP.""" | |
| from mcp import McpError # noqa: F401 | |
| 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 PromptError(FastMCPError): | |
| """Error in prompt operations.""" | |
| class InvalidSignature(Exception): | |
| """Invalid signature for use with FastMCP.""" | |
| class ClientError(Exception): | |
| """Error in client operations.""" | |
| class NotFoundError(Exception): | |
| """Object not found.""" | |
| class DisabledError(Exception): | |
| """Object is disabled.""" | |