| Server IP : 159.223.102.202 / Your IP : 216.73.217.92 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/protocols/haproxy/__pycache__/ |
Upload File : |
�
M��e� � � � d Z ddlZddlmZmZmZ G d� de� Z G d� de� Z G d� d e� Z ej d
ee deg ef ded
fd�� Zy)z
HAProxy specific exceptions.
� N)�Callable� Generator�Typec � � e Zd ZdZy)�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 Zd ZdZy)�InvalidNetworkProtocolzC
The network protocol was not one of TCP4 TCP6 or UNKNOWN.
Nr r
r r r r r r r c � � e Zd ZdZy)�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}~ww xY 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"