
    'h                        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#yE)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.
    c                 $    t         |   |       y Nsuper__init__selfmessage	__class__s     l/var/www/html/scrapers/gsc/venv/lib/python3.12/site-packages/seleniumwire/thirdparty/mitmproxy/exceptions.pyr   zMitmproxyException.__init__       !    r   __name__
__module____qualname____doc__r   __classcell__r   s   @r   r   r      s    " "r   r   c                       e Zd ZdZy)KillzX
    Signal that both client and server connection(s) should be killed immediately.
    Nr   r   r   r    r   r   r   r      s     	r   r   c                       e Zd ZdZy)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     	r   r   c                       e Zd Zy)TlsProtocolExceptionNr   r   r   r   r   r   r   r   '       r   r   c                        e Zd Z fdZ xZS )ClientHandshakeExceptionc                 2    t         |   |       || _        y 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"   +   s     r   r"   c                       e Zd Zd Zy)InvalidServerCertificatec                     t        |       S r   )str)r
   s    r   __repr__z!InvalidServerCertificate.__repr__3   s    4yr   N)r   r   r   r)   r   r   r   r&   r&   2   s    r   r&   c                       e Zd Zy)Socks5ProtocolExceptionNr   r   r   r   r+   r+   8   r    r   r+   c                       e Zd Zy)HttpProtocolExceptionNr   r   r   r   r-   r-   <   r    r   r-   c                       e Zd Zy)Http2ProtocolExceptionNr   r   r   r   r/   r/   @   r    r   r/   c                       e Zd Zy)Http2ZombieExceptionNr   r   r   r   r1   r1   D   r    r   r1   c                       e Zd Zy)ServerExceptionNr   r   r   r   r3   r3   H   r    r   r3   c                       e Zd Zy)ContentViewExceptionNr   r   r   r   r5   r5   L   r    r   r5   c                       e Zd Zy)ReplayExceptionNr   r   r   r   r7   r7   P   r    r   r7   c                       e Zd Zy)FlowReadExceptionNr   r   r   r   r9   r9   T   r    r   r9   c                       e Zd Zy)ControlExceptionNr   r   r   r   r;   r;   X   r    r   r;   c                       e Zd Zy)SetServerNotAllowedExceptionNr   r   r   r   r=   r=   \   r    r   r=   c                       e Zd Zy)CommandErrorNr   r   r   r   r?   r?   `   r    r   r?   c                       e Zd Zy)OptionsErrorNr   r   r   r   rA   rA   d   r    r   rA   c                       e Zd Zy)AddonManagerErrorNr   r   r   r   rC   rC   h   r    r   rC   c                       e Zd ZdZy)	AddonHaltz[
        Raised by addons to signal that no further handlers should handle this event.
    Nr   r   r   r   rE   rE   l   s     	r   rE   c                       e Zd Zy)	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.
    c                 $    t         |   |       y r   r   r	   s     r   r   zNetlibException.__init__   r   r   r   r   r   s   @r   rI   rI   |   s    " "r   rI   c                       e Zd Zy)SessionLoadExceptionNr   r   r   r   rL   rL      r    r   rL   c                       e Zd ZdZy)
DisconnectzImmediate EOFNr   r   r   r   rN   rN      s    r   rN   c                       e Zd Zy)HttpExceptionNr   r   r   r   rP   rP      r    r   rP   c                       e Zd Zy)HttpReadDisconnectNr   r   r   r   rR   rR      r    r   rR   c                       e Zd Zy)HttpSyntaxExceptionNr   r   r   r   rT   rT      r    r   rT   c                       e Zd Zy)TcpExceptionNr   r   r   r   rV   rV      r    r   rV   c                       e Zd Zy)TcpDisconnectNr   r   r   r   rX   rX      r    r   rX   c                       e Zd Zy)TcpReadIncompleteNr   r   r   r   rZ   rZ      r    r   rZ   c                       e Zd Zy)
TcpTimeoutNr   r   r   r   r\   r\      r    r   r\   c                       e Zd Zy)TlsExceptionNr   r   r   r   r^   r^      r    r   r^   c                       e Zd Zy)InvalidCertificateExceptionNr   r   r   r   r`   r`      r    r   r`   c                       e Zd Zy)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   