HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/_exceptions.cpython-310.pyc
o

�b��@s�dZddlZddlmZmZmZGdd�de�ZGdd�de�ZGdd	�d	e�Z	ej
d
eedegefded
fdd��ZdS)z
HAProxy specific exceptions.
�N)�Callable�	Generator�Typec@�eZdZdZdS)�InvalidProxyHeaderz8
    The provided PROXY protocol header is invalid.
    N��__name__�
__module__�__qualname__�__doc__�rr�G/usr/lib/python3/dist-packages/twisted/protocols/haproxy/_exceptions.pyr
�rc@r)�InvalidNetworkProtocolzC
    The network protocol was not one of TCP4 TCP6 or UNKNOWN.
    Nrrrrr
rrrc@r)�MissingAddressDataz4
    The address data is missing or incomplete.
    Nrrrrr
rrr�
sourceType�
targetType�return)NNNc
cs6�zdVWdS|y}z|��|j��d}~ww)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__)rr�errr
�convertErrors���r)
r�
contextlib�typingrrr�	Exceptionrrr�contextmanager�
BaseExceptionrrrrr
�<module>s�
��