
    @OOfH                         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y)a  

Edit 2020-12 @mhils:
    The advice below hasn't paid off in any form. We now just use builtin exceptions and specialize where necessary.

---

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     U/var/www/premiumrankchecker/venv/lib/python3.12/site-packages/mitmproxy/exceptions.pyr   zMitmproxyException.__init__   s    !    r   )__name__
__module____qualname____doc__r   __classcell__)r
   s   @r   r   r      s    " "r   r   c                       e Zd Zy)FlowReadExceptionNr   r   r    r   r   r   r          r   r   c                       e Zd Zy)ControlExceptionNr   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   r   r   (   r   r   r   c                       e Zd Zy)AddonManagerErrorNr   r   r   r   r   r   ,   r   r   r   c                       e Zd ZdZy)	AddonHaltzW
    Raised by addons to signal that no further handlers should handle this event.
    N)r   r   r   r   r   r   r   r    r    0   s    r   r    N)	r   	Exceptionr   r   r   r   r   r   r    r   r   r   <module>r"      sc   $" "	* 		) 		9 		% 		* 	" r   