HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/_exceptions.cpython-38.pyc
U


W[=�@sbdZddlZddlZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�Zej	d
d��Z
dS)z
HAProxy specific exceptions.
�N)�compatc@seZdZdZdS)�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.pyrsrc@seZdZdZdS)�InvalidNetworkProtocolzC
    The network protocol was not one of TCP4 TCP6 or UNKNOWN.
    Nrr	r	r	r
rsrc@seZdZdZdS)�MissingAddressDataz4
    The address data is missing or incomplete.
    Nrr	r	r	r
rsrccs:z
dVWn*|k
r4t�|�t��d�YnXdS)a9
    Convert an error into a different error type.

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

    @param targetType: The type of exception to which the original should be
        converted.
    @type targetType: L{Exception}
    N���)rZreraise�sys�exc_info)Z
sourceTypeZ
targetTyper	r	r
�convertError$s

r)r�
contextlibrZtwisted.pythonr�	Exceptionrrr�contextmanagerrr	r	r	r
�<module>s