Ë
    ojš  ã                   ó®   — d Z ddlZddlmZmZmZ  G d„ de«      Z G d„ de«      Z G d„ d	e«      Z	ej                  d
ee   deg ef   ded   fd„«       Zy)z
HAProxy specific exceptions.
é    N)ÚCallableÚ	GeneratorÚTypec                   ó   — e Zd ZdZy)ÚInvalidProxyHeaderz8
    The provided PROXY protocol header is invalid.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úG/usr/lib/python3/dist-packages/twisted/protocols/haproxy/_exceptions.pyr   r      ó   „ òr   r   c                   ó   — e Zd ZdZy)ÚInvalidNetworkProtocolzC
    The network protocol was not one of TCP4 TCP6 or UNKNOWN.
    Nr   r   r   r   r   r      r   r   r   c                   ó   — e Zd ZdZy)ÚMissingAddressDataz4
    The address data is missing or incomplete.
    Nr   r   r   r   r   r      r   r   r   Ú
sourceTypeÚ
targetTypeÚreturn)NNNc              #   óp   K  — 	 d–— y# | $ r%} |«       j                  |j                  «      ‚d}~ww xY w­w)aA  
    Convert an error into a different error type.

    @param sourceType: The type of exception that should be caught and
        converted.
    @type sourceType: L{BaseException}

    @param targetType: The type of exception to which the original should be
        converted.
    @type targetType: L{BaseException}
    N)Úwith_tracebackÚ__traceback__)r   r   Úes      r   ÚconvertErrorr      s4   è ø€ ð;ÜøØò ;Ù‹l×)Ñ)¨!¯/©/Ó:Ð:ûð;üs   ‚6„	 ˆ6‰3Ž .®3³6)r   Ú
contextlibÚtypingr   r   r   Ú	Exceptionr   r   r   ÚcontextmanagerÚBaseExceptionr   r   r   r   ú<module>r"      s‚   ðñ
ó ß ,Ñ ,ô˜ô ôÐ/ô ôÐ+ô ð ×Ñð;Ø�]Ñ#ð;Ø19¸"¸mÐ:KÑ1Lð;àÐÑ ò;ó ñ;r   