
    kKj                     <   d Z ddlZ	 ddlmZ  G d de      Z G d d	e      Z G d
 de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Zy# e$ r  G d de      ZY w xY w)zCustom exceptions for FastMCP.    N)McpErrorc                       e Zd ZdZy)r   z6Fallback used when MCP dependencies are not installed.N__name__
__module____qualname____doc__     c/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/fastmcp/exceptions.pyr   r   	   s    Dr   r   c                       e Zd ZdZy)FastMCPDeprecationWarningzDeprecation warning for FastMCP APIs.

    Subclass of DeprecationWarning so that standard warning filters
    still apply, but FastMCP can selectively enable its own warnings
    without affecting other libraries in the process.
    Nr   r
   r   r   r   r      s    r   r   c                   J     e Zd ZdZej
                  ddededdf fdZ xZ	S )FastMCPErrorzBase error for FastMCP.)	log_levelargsr   returnNc                ,    t        |   |  || _        y )N)super__init__r   )selfr   r   	__class__s      r   r   zFastMCPError.__init__   s    $"r   )
r   r   r   r	   loggingERRORobjectintr   __classcell__)r   s   @r   r   r      s,    !7>}} #f # # # #r   r   c                       e Zd ZdZy)ValidationErrorz0Error in validating parameters or return values.Nr   r
   r   r   r   r      s    :r   r   c                       e Zd ZdZy)ResourceErrorzError in resource operations.Nr   r
   r   r   r!   r!   "   s    'r   r!   c                       e Zd ZdZy)	ToolErrorzError in tool operations.Nr   r
   r   r   r#   r#   &   s    #r   r#   c                       e Zd ZdZy)PromptErrorzError in prompt operations.Nr   r
   r   r   r%   r%   *       %r   r%   c                       e Zd ZdZy)InvalidSignaturez'Invalid signature for use with FastMCP.Nr   r
   r   r   r(   r(   .   s    1r   r(   c                       e Zd ZdZy)ClientErrorzError in client operations.Nr   r
   r   r   r*   r*   2   r&   r   r*   c                       e Zd ZdZy)NotFoundErrorzObject not found.Nr   r
   r   r   r,   r,   6   s    r   r,   c                       e Zd ZdZy)DisabledErrorzObject is disabled.Nr   r
   r   r   r.   r.   :   s    r   r.   c                       e Zd ZdZy)AuthorizationErrorz%Error when authorization check fails.Nr   r
   r   r   r0   r0   >   s    /r   r0   )r	   r   mcpr   ImportError	ExceptionDeprecationWarningr   r   r   r!   r#   r%   r(   r*   r,   r.   r0   r
   r   r   <module>r5      s    $ E 2 #9 #;l ;(L ($ $&, &2y 2&) &I I 0 0o  EE9 EEs   B BB