Files
Pietro Zullo 18f51eddb8 Feat: python/restructure (#318)
* 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
2025-10-17 20:09:19 +02:00

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