yera.tools.mcp.exceptions
Exceptions raised by MCP-backed Yera tools.
Symbols
MCPAuthenticationError
MCPErrorMCPAuthenticationRequiredError, MCPOAuthCallbackError, MCPOAuthCallbackTimeoutError, MCPOAuthCallbackUnavailableError, MCPOAuthCancelledError, MCPOAuthDeviceDeniedError, MCPOAuthDeviceError, MCPOAuthDeviceExpiredErrorBase exception for MCP authentication failures.
MCPAuthenticationRequiredError
MCPAuthenticationErrorRaised when an MCP resource requires authentication.
Attributes
MCP resource that rejected the request.
Complete WWW-Authenticate challenge, when supplied.
Methods
MCPAuthenticationRequiredError.__init__
__init__(
server_url: str,
challenge: str | None,
) → NoneDescribe an authentication challenge from an MCP resource.
Parameters
MCP resource that rejected the request.
Complete WWW-Authenticate response value.
MCPError
YeraErrorMCPAuthenticationError, MCPServerUnreachableError, MCPTaskError, MCPTaskExecutionRequiredError, MCPToolCallErrorBase exception for MCP tool integration failures.
MCPOAuthCallbackError
MCPAuthenticationErrorRaised when an OAuth callback reports failure.
Attributes
OAuth error code returned by the authorization server.
Optional human-readable provider detail.
Methods
MCPOAuthCallbackError.__init__
__init__(
error: str,
description: str | None = None,
) → NoneDescribe an error returned by an OAuth callback.
Parameters
OAuth protocol error code.
Optional provider-supplied explanation.
MCPOAuthCallbackTimeoutError
MCPAuthenticationErrorRaised when OAuth authorization does not return before its deadline.
MCPOAuthCancelledError
MCPAuthenticationErrorRaised when the user cancels OAuth authorization.
MCPOAuthDeviceDeniedError
MCPAuthenticationErrorRaised when the user denies device authorization.
MCPOAuthDeviceError
MCPAuthenticationErrorRaised when device authorization reports a terminal OAuth error.
Attributes
OAuth error code returned by the authorization server.
Optional human-readable provider detail.
Methods
MCPOAuthDeviceError.__init__
__init__(
error: str,
description: str | None = None,
) → NoneDescribe a terminal device-authorization error.
Parameters
OAuth protocol error code.
Optional provider-supplied explanation.
MCPOAuthDeviceExpiredError
MCPAuthenticationErrorRaised when device authorization expires before approval.
MCPServerUnreachableError
MCPErrorRaised when an MCP server cannot be reached.
Attributes
MCP endpoint that could not be reached.
Methods
MCPServerUnreachableError.__init__
__init__(
server_url: str,
) → NoneDescribe the unreachable MCP endpoint.
Parameters
MCP endpoint that could not be reached.
MCPTaskError
MCPErrorMCPTaskCancelledError, MCPTaskExpiredError, MCPTaskFailedError, MCPTaskInputRequiredErrorBase exception for MCP task lifecycle failures.
MCPTaskExecutionRequiredError
MCPErrorRaised when an MCP tool requires unsupported task execution.
MCPTaskExpiredError
MCPTaskErrorRaised when an MCP task has expired or is no longer available.
MCPTaskInputRequiredError
MCPTaskErrorRaised when an MCP task requires unsupported client input.