
    #jn                     J   d 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dS )zCustom exceptions for FastMCP.    )McpErrorc                       e Zd ZdZdS )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.
    N__name__
__module____qualname____doc__     Z/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/fastmcp/exceptions.pyr   r      s           r   r   c                       e Zd ZdZdS )FastMCPErrorzBase error for FastMCP.Nr   r   r   r   r   r      s        !!!!r   r   c                       e Zd ZdZdS )ValidationErrorz0Error in validating parameters or return values.Nr   r   r   r   r   r      s        ::::r   r   c                       e Zd ZdZdS )ResourceErrorzError in resource operations.Nr   r   r   r   r   r      s        ''''r   r   c                       e Zd ZdZdS )	ToolErrorzError in tool operations.Nr   r   r   r   r   r      s        ####r   r   c                       e Zd ZdZdS )PromptErrorzError in prompt operations.Nr   r   r   r   r   r              %%%%r   r   c                       e Zd ZdZdS )InvalidSignaturez'Invalid signature for use with FastMCP.Nr   r   r   r   r   r   #   s        1111r   r   c                       e Zd ZdZdS )ClientErrorzError in client operations.Nr   r   r   r   r   r   '   r   r   r   c                       e Zd ZdZdS )NotFoundErrorzObject not found.Nr   r   r   r   r   r   +   s        r   r   c                       e Zd ZdZdS )DisabledErrorzObject is disabled.Nr   r   r   r   r    r    /   s        r   r    c                       e Zd ZdZdS )AuthorizationErrorz%Error when authorization check fails.Nr   r   r   r   r"   r"   3   s        ////r   r"   N)r
   mcpr   DeprecationWarningr   	Exceptionr   r   r   r   r   r   r   r   r    r"   r   r   r   <module>r&      s   $ $           2   " " " " "9 " " "; ; ; ; ;l ; ; ;( ( ( ( (L ( ( ($ $ $ $ $ $ $ $& & & & &, & & &2 2 2 2 2y 2 2 2& & & & &) & & &    I       I   0 0 0 0 0 0 0 0 0 0r   