← back to Atmos Game

assets/gen/.venv/lib/python3.12/site-packages/anyio/_core/__pycache__/_exceptions.cpython-312.pyc

86 lines

�

c�bjH����ddlmZddlZddlmZddlmZddlmZejdkrddl
mZGd�d	e�Z
Gd
�de�ZGd�d
e�ZGd�de�ZGd�de�ZGd�de�Z				d)d�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�d e�ZGd!�d"e�ZGd#�d$e�ZGd%�d&e�ZGd'�d(e�Z y)*�)�annotationsN)�	Generator)�dedent)�Any)��)�BaseExceptionGroupc��eZdZdZy)�BrokenResourceErrorz�
    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__�__doc__���n/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/anyio/_core/_exceptions.pyrr���rrc��eZdZdZy)�BrokenWorkerProcessz}
    Raised by :meth:`~anyio.to_process.run_sync` if the worker process terminates abruptly or
    otherwise misbehaves.
    Nrrrrrrrrrc�0��eZdZdZd�fd�Zd�fd�Z�xZS)�BrokenWorkerInterpreterzz
    Raised by :meth:`~anyio.to_interpreter.run_sync` if an unexpected exception is
    raised in the subinterpreter.
    c���|j}|sb|jr2|jr&|jj�d|j��}n$|jjxs|j}t�|�|�||_y)Nz: )�	formatted�type�msgr
�super�__init__�excinfo)�selfrr�	__class__s   �rrz BrokenWorkerInterpreter.__init__ si���������|�|���� ���.�.�/�r�'�+�+��?���l�l�+�+�:�w�{�{��
�������rc����	|jj}tdt�|���d|�d�j��S#t$rt�|��cYSwxYw)Nz
                z@

                Uncaught in the interpreter:

                )r�
errdisplayrr�__str__�strip�	Exception)r rr!s  �rr$zBrokenWorkerInterpreter.__str__,su���
	����/�/�I������"�#�$������E�G��
���	%��7�?�$�$�	%�s�A�A�A)rr)�return�str)r
rrrrr$�
__classcell__�r!s@rrrs����

��rrc�$��eZdZdZd�fd�Z�xZS)�BusyResourceErrorzg
    Raised when two tasks are trying to read from or write to the same resource
    concurrently.
    c�,��t�|�d|�d��y)NzAnother task is already z this resource�rr)r �actionr!s  �rrzBusyResourceError.__init__Cs���
���3�F�8�>�J�Kr)r/r(�r
rrrrr)r*s@rr,r,=s����
L�Lrr,c��eZdZdZy)�ClosedResourceErrorz:Raised when trying to use a resource that has been closed.Nrrrrr2r2Gs��Drr2c��eZdZdZy)�ConnectionFailedz�
    Raised when a connection attempt fails.

    .. note:: This class inherits from :exc:`OSError` for backwards compatibility.
    Nrrrrr4r4Ks��rr4c#�K�t|t�r%|jD]}t|�Ed{����y|��y7��w)N)�
isinstancer	�
exceptions�iterate_exceptions)�	exception�excs  rr8r8Ss=�����)�/�0��'�'�C�)�#�.�.�.�(���
/�s�.?�=�
?c�$��eZdZdZd�fd�Z�xZS)�DelimiterNotFoundz�
    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�|�d|�d��y)Nz,The delimiter was not found among the first z bytesr.)r �	max_bytesr!s  �rrzDelimiterNotFound.__init__ds���
���:�9�+�V�L�	
r)r>�intr'�Noner0r*s@rr<r<]s����
�
rr<c��eZdZdZy)�EndOfStreamz[
    Raised when trying to read from a stream that has been closed from the other end.
    NrrrrrBrBjs��rrBc�$��eZdZdZd�fd�Z�xZS)�IncompleteReada
    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�|�d�y)NzBThe stream was closed before the read operation could be completedr.�r r!s �rrzIncompleteRead.__init__xs���
���P�	
r�r'r@r0r*s@rrDrDps����
�
rrDc��eZdZdZy)�TypedAttributeLookupErrorz�
    Raised by :meth:`~anyio.TypedAttributeProvider.extra` when the given typed attribute
    is not found and no default value has been given.
    NrrrrrIrI~rrrIc��eZdZdZy)�
WouldBlockz8Raised by ``X_nowait`` functions if ``X()`` would block.NrrrrrKrK�s��BrrKc��eZdZdZy)�NoEventLoopErrora1
    Raised by several functions that require an event loop to be running in the current
    thread when there is no running event loop.

    This is also 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.
    NrrrrrMrM�s��rrMc�$��eZdZdZd�fd�Z�xZS)�RunFinishedErrorz�
    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�|�d�y)NzCThe event loop associated with the given token has already finishedr.rFs �rrzRunFinishedError.__init__�s���
���Q�	
rrGr0r*s@rrOrO�s����

�
rrOc��eZdZdZy)�
TaskFailedz�
    Raised when awaiting on, or attempting to access the return value of, a
    :class:`.TaskHandle` that raised an exception.
    NrrrrrRrR�rrrRc��eZdZdZy)�
TaskCancelledz~
    Raised when awaiting on, or attempting to access the return value of, a
    :class:`.TaskHandle` that was cancelled.
    NrrrrrTrT�rrrTc��eZdZdZy)�TaskNotFinishedz�
    Raised when attempting to access the return value or exception of a
    :class:`.TaskHandle` that is still pending completion.
    NrrrrrVrV�rrrV)r9�
BaseExceptionr'z$Generator[BaseException, None, None])!�
__future__r�sys�collections.abcr�textwrapr�typingr�version_info�exceptiongroupr	r&rrrr,r2�OSErrorr4r8r<rBrD�LookupErrorrIrK�RuntimeErrorrMrOrRrTrVrrr�<module>rbs��"�
�%������g��1��)���)�� �i� �FL�	�L�E�)�E��w�����)��

�	�

��)��
�Y�
����C��C��|��	
�|�	
�����J���i�r