
    iT                     4    d dl Z d dlmZ  G d de      Zd Zy)    N)wrapsc                       e Zd ZdZy)ProtocolErrorz8Raised when there is a protocol error in the connection.N)__name__
__module____qualname____doc__     o/var/www/catia.catastroantioquia-mas.com/valormas/lib/python3.12/site-packages/pinecone/utils/error_handling.pyr   r      s    Br   r   c                 f     t                fd       }t        j                         }||_        |S )Nc                      	  | i |S # t         $ rf}ddlm}m} t	        ||      r2t	        |j
                  |      rt        d|j                         |||t	        ||      rt        d      |||d }~ww xY w)Nr   )MaxRetryErrorr   zFailed to connect to zOConnection failed. Please verify that the index host is correct and accessible.)	Exceptionurllib3.exceptionsr   r   
isinstancereasonurl)argskwargser   Urllib3ProtocolErrorfuncs        r   
inner_funcz/validate_and_convert_errors.<locals>.inner_func   s    	((( 	_!]+ahh(<='*?w(GHaONA34#e Q	s    	A:A!A55A:)r   inspect	signature__signature__)r   r   sigs   `  r   validate_and_convert_errorsr      s9    
4[ ( 

D
!C"Jr   )r   	functoolsr   r   r   r   r
   r   r   <module>r!      s     	I 	r   