← Back
Editing: _exceptions.cpython-38.pyc
U W[= � @ sb d Z ddlZddlZddlmZ G dd� de�ZG dd� de�ZG dd � d e�Zej d d� �Z dS )z HAProxy specific exceptions. � N)�compatc @ s e Zd ZdZdS )�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 s r c @ s e Zd ZdZdS )�InvalidNetworkProtocolzC The network protocol was not one of TCP4 TCP6 or UNKNOWN. Nr r r r r r s r c @ s e Zd ZdZdS )�MissingAddressDataz4 The address data is missing or incomplete. Nr r r r r r s r c c s: z dV W n* | k r4 t �|� t�� d � Y nX dS )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���)r Zreraise�sys�exc_info)Z sourceTypeZ targetTyper r r �convertError$ s r )r � contextlibr Ztwisted.pythonr � Exceptionr r r �contextmanagerr r r r r �<module> s
Save File
Cancel