
    hg                        d Z  G d de          Z G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d d e          Z G d! d"e          Z G d# d$e          Z G d% d&e          Z G d' d(e          Z G d) d*e          Z	  G d+ d,e          Z G d- d.e          Z G d/ d0          Z G d1 d2e          Z G d3 d4ee          Z G d5 d6e          Z G d7 d8e          Z G d9 d:ee          Z G d; d<e          Z G d= d>e          Z  G d? d@e          Z! G dA dBe!          Z" G dC dDe          Z#dES )Fal  
We try to be very hygienic regarding the exceptions we throw:

- Every exception that might be externally visible to users shall be a subclass
  of MitmproxyException.p
- Every exception in the base net module shall be a subclass
  of NetlibException, and will not be propagated directly to users.

See also: http://lucumr.pocoo.org/2014/10/16/on-error-handling/
c                   $     e Zd ZdZd fd	Z xZS )MitmproxyExceptionz<
    Base class for all exceptions thrown by mitmproxy.
    Nc                 J    t                                          |           d S Nsuper__init__selfmessage	__class__s     e/var/www/fb-scrape/myenv/lib/python3.11/site-packages/seleniumwire/thirdparty/mitmproxy/exceptions.pyr   zMitmproxyException.__init__   !    !!!!!    r   __name__
__module____qualname____doc__r   __classcell__r   s   @r   r   r      sG         " " " " " " " " " "r   r   c                       e Zd ZdZdS )KillzX
    Signal that both client and server connection(s) should be killed immediately.
    Nr   r   r   r    r   r   r   r      s          	Dr   r   c                       e Zd ZdZdS )ProtocolExceptionz
    ProtocolExceptions are caused by invalid user input, unavailable network resources,
    or other events that are outside of our influence.
    Nr   r   r   r   r   r      s          	Dr   r   c                       e Zd ZdS )TlsProtocolExceptionNr   r   r   r   r   r   r   r   '           Dr   r   c                        e Zd Z fdZ xZS )ClientHandshakeExceptionc                 X    t                                          |           || _        d S r   )r   r   server)r
   r   r$   r   s      r   r   z!ClientHandshakeException.__init__-   s&    !!!r   )r   r   r   r   r   r   s   @r   r"   r"   +   s8                r   r"   c                       e Zd Zd ZdS )InvalidServerCertificatec                      t          |           S r   )str)r
   s    r   __repr__z!InvalidServerCertificate.__repr__3   s    4yyr   N)r   r   r   r)   r   r   r   r&   r&   2   s#            r   r&   c                       e Zd ZdS )Socks5ProtocolExceptionNr   r   r   r   r+   r+   8   r    r   r+   c                       e Zd ZdS )HttpProtocolExceptionNr   r   r   r   r-   r-   <   r    r   r-   c                       e Zd ZdS )Http2ProtocolExceptionNr   r   r   r   r/   r/   @   r    r   r/   c                       e Zd ZdS )Http2ZombieExceptionNr   r   r   r   r1   r1   D   r    r   r1   c                       e Zd ZdS )ServerExceptionNr   r   r   r   r3   r3   H   r    r   r3   c                       e Zd ZdS )ContentViewExceptionNr   r   r   r   r5   r5   L   r    r   r5   c                       e Zd ZdS )ReplayExceptionNr   r   r   r   r7   r7   P   r    r   r7   c                       e Zd ZdS )FlowReadExceptionNr   r   r   r   r9   r9   T   r    r   r9   c                       e Zd ZdS )ControlExceptionNr   r   r   r   r;   r;   X   r    r   r;   c                       e Zd ZdS )SetServerNotAllowedExceptionNr   r   r   r   r=   r=   \   r    r   r=   c                       e Zd ZdS )CommandErrorNr   r   r   r   r?   r?   `   r    r   r?   c                       e Zd ZdS )OptionsErrorNr   r   r   r   rA   rA   d   r    r   rA   c                       e Zd ZdS )AddonManagerErrorNr   r   r   r   rC   rC   h   r    r   rC   c                       e Zd ZdZdS )	AddonHaltz[
        Raised by addons to signal that no further handlers should handle this event.
    Nr   r   r   r   rE   rE   l   s          	Dr   rE   c                       e Zd ZdS )	TypeErrorNr   r   r   r   rG   rG   s   r    r   rG   c                   $     e Zd ZdZd fd	Z xZS )NetlibExceptionz@
    Base class for all exceptions thrown by mitmproxy.net.
    Nc                 J    t                                          |           d S r   r   r	   s     r   r   zNetlibException.__init__   r   r   r   r   r   s   @r   rI   rI   |   sG         " " " " " " " " " "r   rI   c                       e Zd ZdS )SessionLoadExceptionNr   r   r   r   rL   rL      r    r   rL   c                       e Zd ZdZdS )
DisconnectzImmediate EOFNr   r   r   r   rN   rN      s        r   rN   c                       e Zd ZdS )HttpExceptionNr   r   r   r   rP   rP      r    r   rP   c                       e Zd ZdS )HttpReadDisconnectNr   r   r   r   rR   rR      r    r   rR   c                       e Zd ZdS )HttpSyntaxExceptionNr   r   r   r   rT   rT      r    r   rT   c                       e Zd ZdS )TcpExceptionNr   r   r   r   rV   rV      r    r   rV   c                       e Zd ZdS )TcpDisconnectNr   r   r   r   rX   rX      r    r   rX   c                       e Zd ZdS )TcpReadIncompleteNr   r   r   r   rZ   rZ      r    r   rZ   c                       e Zd ZdS )
TcpTimeoutNr   r   r   r   r\   r\      r    r   r\   c                       e Zd ZdS )TlsExceptionNr   r   r   r   r^   r^      r    r   r^   c                       e Zd ZdS )InvalidCertificateExceptionNr   r   r   r   r`   r`      r    r   r`   c                       e Zd ZdS )TimeoutNr   r   r   r   rb   rb      r    r   rb   N)$r   	Exceptionr   r   r   r   r"   r&   r+   r-   r/   r1   r3   r5   r7   r9   r;   r=   r?   rA   rC   rE   rG   rI   rL   rN   rP   rR   rT   rV   rX   rZ   r\   r^   r`   rb   r   r   r   <module>rd      s  	 	" " " " " " " "	 	 	 	 	 	 	 		 	 	 	 	* 	 	 		 	 	 	 	, 	 	 	    3       3   	 	 	 	 	/ 	 	 		 	 	 	 	- 	 	 		 	 	 	 	. 	 	 		 	 	 	 	, 	 	 		 	 	 	 	( 	 	 		 	 	 	 	- 	 	 		 	 	 	 	( 	 	 		 	 	 	 	* 	 	 		 	 	 	 	) 	 	 		 	 	 	 	#5 	 	 		 	 	 	 	9 	 	 		 	 	 	 	% 	 	 		 	 	 	 	* 	 	 		 	 	 	 	" 	 	 		 	 	 	 	" 	 	 	
" " " " "( " " "	 	 	 	 	- 	 	 	       	 	 	 	 	O 	 	 		 	 	 	 	
 	 	 		 	 	 	 	- 	 	 		 	 	 	 	? 	 	 		 	 	 	 	L* 	 	 		 	 	 	 	 	 	 		 	 	 	 	 	 	 		 	 	 	 	? 	 	 		 	 	 	 	, 	 	 		 	 	 	 	l 	 	 	 	 	r   