o
    ÚtBhÐ  ã                   @   sx   d dl mZmZmZ G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZ	G dd„ deƒZ
dS )é    )ÚAnyÚListÚOptionalc                   @   ó   e Zd ZdZdS )ÚTransportErrorz+Base class for all the Transport exceptionsN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úo/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/gql/transport/exceptions.pyr      s    r   c                   @   r   )ÚTransportProtocolErrorzvTransport protocol error.

    The answer received from the server does not correspond to the transport protocol.
    Nr   r   r   r   r   r   
   ó    r   c                       s>   e Zd ZU dZee ed< ddedee f‡ fdd„Z‡  Z	S )ÚTransportServerErrorzaThe server returned a global error.

    This exception will close the transport connection.
    ÚcodeNÚmessagec                    s   t t| ƒ |¡ || _d S ©N)Úsuperr   Ú__init__r   )Úselfr   r   ©Ú	__class__r   r   r      s   
zTransportServerError.__init__r   )
r   r	   r
   r   r   ÚintÚ__annotations__Ústrr   Ú__classcell__r   r   r   r   r      s   
 $r   c                       sŠ   e Zd ZU dZee ed< eee  ed< ee ed< ee ed< 				d
de	dee deee  dee dee f
‡ fdd	„Z
‡  ZS )ÚTransportQueryErrorzvThe server returned an error for a specific query.

    This exception should not close the transport connection.
    Úquery_idÚerrorsÚdataÚ
extensionsNÚmsgc                    s(   t ƒ  |¡ || _|| _|| _|| _d S r   )r   r   r   r   r    r!   )r   r"   r   r   r    r!   r   r   r   r   )   s
   
zTransportQueryError.__init__)NNNN)r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r      s*   
 úþý
üûúr   c                   @   r   )ÚTransportClosedz Transport is already closed.

    This exception is generated when the client is trying to use the transport
    while the transport was previously closed.
    Nr   r   r   r   r   r#   8   r   r#   c                   @   r   )ÚTransportAlreadyConnectedz¡Transport is already connected.

    Exception generated when the client is trying to connect to the transport
    while the transport is already connected.
    Nr   r   r   r   r   r$   @   r   r$   N)Útypingr   r   r   Ú	Exceptionr   r   r   r   r#   r$   r   r   r   r   Ú<module>   s    