mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
# mcp_use/exceptions.py
|
|
import warnings
|
|
|
|
from typing_extensions import deprecated
|
|
|
|
from mcp_use.client.exceptions import (
|
|
ConfigurationError as _ConfigurationError,
|
|
)
|
|
from mcp_use.client.exceptions import (
|
|
ConnectionError as _ConnectionError,
|
|
)
|
|
from mcp_use.client.exceptions import (
|
|
MCPError as _MCPError,
|
|
)
|
|
from mcp_use.client.exceptions import (
|
|
OAuthAuthenticationError as _OAuthAuthenticationError,
|
|
)
|
|
from mcp_use.client.exceptions import (
|
|
OAuthDiscoveryError as _OAuthDiscoveryError,
|
|
)
|
|
|
|
warnings.warn(
|
|
"mcp_use.exceptions is deprecated. Use mcp_use.client.exceptions. This import will be removed in version 2.0.0",
|
|
DeprecationWarning,
|
|
stacklevel=2,
|
|
)
|
|
|
|
|
|
@deprecated("Use mcp_use.client.exceptions.MCPError")
|
|
class MCPError(_MCPError): ...
|
|
|
|
|
|
@deprecated("Use mcp_use.client.exceptions.OAuthDiscoveryError")
|
|
class OAuthDiscoveryError(_OAuthDiscoveryError): ...
|
|
|
|
|
|
@deprecated("Use mcp_use.client.exceptions.OAuthAuthenticationError")
|
|
class OAuthAuthenticationError(_OAuthAuthenticationError): ...
|
|
|
|
|
|
@deprecated("Use mcp_use.client.exceptions.ConnectionError")
|
|
class ConnectionError(_ConnectionError): ...
|
|
|
|
|
|
@deprecated("Use mcp_use.client.exceptions.ConfigurationError")
|
|
class ConfigurationError(_ConfigurationError): ...
|