
    H>qjK                     H    d dl mZ ddlmZ  G d de      Z G d de      Zy)	   )Op   )Eventc                       e Zd ZdZddZy)Errors)_sourceNc                     t        j                  |        || _        |!|j                         r| j	                          y |xj
                  | j                  z  c_        y N)r   __init__r   doneset_doneerror_eventemitselfsources     P/opt/rentech/trading_bot/.venv/lib/python3.12/site-packages/eventkit/ops/misc.pyr   zErrors.__init__   sA    t&++-MMO$))+    r
   )__name__
__module____qualname__	__slots__r    r   r   r   r      s    I,r   r   c                       e Zd ZdZddZd Zy)
EndOnErrorr   Nc                 0    t        j                  | |       y r
   )r   r   r   s     r   r   zEndOnError.__init__   s    
D&!r   c                     | j                  | j                         | j                  j                  |       | j	                          y r
   )disconnect_fromr   r   r   r   )r   errors     r   on_source_errorzEndOnError.on_source_error   s1    T\\*e$r   r
   )r   r   r   r   r   r    r   r   r   r   r      s    I"r   r   N)opr   eventr   r   r   r   r   r   <module>r#      s#     	,U 	,	 	r   