
    ܈h                       S SK Jr  S SKrS SKJr  S SKJr  S SKJr  \R                  S:  a  S SK
Jr   " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r    S#S jr " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      rg)$    )annotationsN)	Generator)dedent)Any)      )BaseExceptionGroupc                      \ rS rSrSrSrg)BrokenResourceError   z
Raised when trying to use a resource that has been rendered unusable due to external
causes (e.g. a send stream whose peer has disconnected).
 N__name__
__module____qualname____firstlineno____doc____static_attributes__r       ?D:\TimeStamps\venv\Lib\site-packages\anyio/_core/_exceptions.pyr   r          r   r   c                      \ rS rSrSrSrg)BrokenWorkerProcess   zq
Raised by :meth:`~anyio.to_process.run_sync` if the worker process terminates abruptly or
otherwise misbehaves.
r   Nr   r   r   r   r   r      r   r   r   c                  @   ^  \ rS rSrSrSU 4S jjrSU 4S jjrSrU =r$ )BrokenWorkerInterpreter   zn
Raised by :meth:`~anyio.to_interpreter.run_sync` if an unexpected exception is
raised in the subinterpreter.
c                8  > UR                   nU(       dq  UR                  (       a7  UR                  (       a&  UR                  R                   SUR                   3nO)UR                  R                  =(       d    UR                  n[        TU ]  U5        Xl        g )Nz: )	formattedtypemsgr   super__init__excinfo)selfr$   r!   	__class__s      r   r#    BrokenWorkerInterpreter.__init__    sg    || ../r'++?ll++:w{{r   c                   >  U R                   R                  n[        S[        TU ]  5        SU S3R                  5       5      $ ! [         a    [        TU ]  5       s $ f = f)Nz
                z@

                Uncaught in the interpreter:

                )r$   
errdisplayr   r"   __str__strip	Exception)r%   r   r&   s     r   r*   BrokenWorkerInterpreter.__str__,   su    	//I "# $   EG   	%7?$$	%s   A A A )r$   )r$   r   )returnstr)	r   r   r   r   r   r#   r*   r   __classcell__r&   s   @r   r   r      s    

 r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )BusyResourceError=   z[
Raised when two tasks are trying to read from or write to the same resource
concurrently.
c                ,   > [         TU ]  SU S35        g )NzAnother task is already z this resourcer"   r#   )r%   actionr&   s     r   r#   BusyResourceError.__init__C   s    3F8>JKr   r   )r7   r/   r   r   r   r   r   r#   r   r0   r1   s   @r   r3   r3   =   s    
L Lr   r3   c                      \ rS rSrSrSrg)ClosedResourceErrorG   z:Raised when trying to use a resource that has been closed.r   Nr   r   r   r   r;   r;   G   s    Dr   r;   c                      \ rS rSrSrSrg)ConnectionFailedK   zy
Raised when a connection attempt fails.

.. note:: This class inherits from :exc:`OSError` for backwards compatibility.
r   Nr   r   r   r   r>   r>   K   s    r   r>   c              #     #    [        U [        5      (       a'  U R                   H  n[        U5       S h  vN   M     g U v   g  N7f)N)
isinstancer	   
exceptionsiterate_exceptions)	exceptionexcs     r   rC   rC   S   s?      )/00''C)#... (  /s   3AAAc                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )DelimiterNotFound]   z
Raised during
:meth:`~anyio.streams.buffered.BufferedByteReceiveStream.receive_until` if the
maximum number of bytes has been read without the delimiter being found.
c                ,   > [         TU ]  SU S35        g )Nz,The delimiter was not found among the first z bytesr6   )r%   	max_bytesr&   s     r   r#   DelimiterNotFound.__init__d   s    :9+VL	
r   r   )rJ   intr.   Noner9   r1   s   @r   rG   rG   ]   s    
 
r   rG   c                      \ rS rSrSrSrg)EndOfStreamj   zS
Raised when trying to read from a stream that has been closed from the other end.
r   Nr   r   r   r   rO   rO   j   s    r   rO   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )IncompleteReadp   z
Raised during
:meth:`~anyio.streams.buffered.BufferedByteReceiveStream.receive_exactly` or
:meth:`~anyio.streams.buffered.BufferedByteReceiveStream.receive_until` if the
connection is closed before the requested amount of bytes has been read.
c                $   > [         TU ]  S5        g )NzBThe stream was closed before the read operation could be completedr6   r%   r&   s    r   r#   IncompleteRead.__init__x   s    P	
r   r   r.   rM   r9   r1   s   @r   rR   rR   p   s    
 
r   rR   c                      \ rS rSrSrSrg)TypedAttributeLookupError~   z
Raised by :meth:`~anyio.TypedAttributeProvider.extra` when the given typed attribute
is not found and no default value has been given.
r   Nr   r   r   r   rY   rY   ~   r   r   rY   c                      \ rS rSrSrSrg)
WouldBlock   z8Raised by ``X_nowait`` functions if ``X()`` would block.r   Nr   r   r   r   r\   r\      s    Br   r\   c                      \ rS rSrSrSrg)NoEventLoopError   z
Raised by :func:`.from_thread.run` and :func:`.from_thread.run_sync` if
not calling from an AnyIO worker thread, and no ``token`` was passed.
r   Nr   r   r   r   r_   r_      r   r   r_   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )RunFinishedError   z
Raised by :func:`.from_thread.run` and :func:`.from_thread.run_sync` if the event
loop associated with the explicitly passed token has already finished.
c                $   > [         TU ]  S5        g )NzCThe event loop associated with the given token has already finishedr6   rU   s    r   r#   RunFinishedError.__init__   s    Q	
r   r   rW   r9   r1   s   @r   rb   rb      s    

 
r   rb   )rD   BaseExceptionr.   z$Generator[BaseException, None, None])
__future__r   syscollections.abcr   textwrapr   typingr   version_infoexceptiongroupr	   r,   r   r   r   r3   r;   OSErrorr>   rC   rG   rO   rR   LookupErrorrY   r\   RuntimeErrorr_   rb   r   r   r   <module>rq      s    " 
 %  g1) )  i  FL	 LE) Ew )

	 

) 
Y 
 C C| 	
| 	
r   