mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
18f51eddb8
* move: session * move: client * move:config * move: exceptions * move: connectors -> client.connectors * move: task_managers -> client.task_managers * move: observability -> agents.observability * move: middleware -> client.middleware * move: managers -> agents.managers * move: auth -> client.auth * move: adapters -> agents.adapters * test: bc test * test: bc test * chore: remove relative imports * fix tests * chore: update docs * chore: deprecation warnings * chore: fix dangerous non absolute import * fix: remove legacy imports * telemetry
32 lines
468 B
Python
32 lines
468 B
Python
"""MCP-use exceptions."""
|
|
|
|
|
|
class MCPError(Exception):
|
|
"""Base exception for MCP-use."""
|
|
|
|
pass
|
|
|
|
|
|
class OAuthDiscoveryError(MCPError):
|
|
"""OAuth discovery auth metadata error"""
|
|
|
|
pass
|
|
|
|
|
|
class OAuthAuthenticationError(MCPError):
|
|
"""OAuth authentication-related errors"""
|
|
|
|
pass
|
|
|
|
|
|
class ConnectionError(MCPError):
|
|
"""Connection-related errors."""
|
|
|
|
pass
|
|
|
|
|
|
class ConfigurationError(MCPError):
|
|
"""Configuration-related errors."""
|
|
|
|
pass
|