← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/anyio/_core/__pycache__/_exceptions.cpython-312.pyc
86 lines
�
c�bjH � �� � d dl mZ d dlZd dlmZ d dlmZ d dlmZ ej dk rd dl
mZ G d� d e� Z
G d
� de� Z G d� d
e� Z G d� de� Z G d� de� Z G d� de� Z d)d�Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� 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)*� )�annotationsN)� Generator)�dedent)�Any)� � )�BaseExceptionGroupc � � e Zd ZdZy)�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.pyr r � � �r r c � � e Zd ZdZy)�BrokenWorkerProcessz}
Raised by :meth:`~anyio.to_process.run_sync` if the worker process terminates abruptly or
otherwise misbehaves.
Nr r r r r r r r r c �0 � � e Zd ZdZd� 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|j r2|j r&|j j � d|j � �}n$|j j xs |j }t �| � |� || _ y )Nz: )� formatted�type�msgr
�super�__init__�excinfo)�selfr r � __class__s �r r z BrokenWorkerInterpreter.__init__ si �� �������|�|���� ���.�.�/�r�'�+�+��?���l�l�+�+�:�w�{�{��
�������r c �� �� | j j }t dt �| � � � d|� d�j � � S # t $ r t �| � � cY S w xY w)Nz
z@
Uncaught in the interpreter:
)r �
errdisplayr r �__str__�strip� Exception)r r r! s �r r$ zBrokenWorkerInterpreter.__str__, su �� �
����/�/�I� �����"�#� $� �� �� �E�G��
�� � %��7�?�$�$� %�s �A �A�A)r r )�return�str)r
r r r r r$ �
__classcell__�r! s @r r r s �� ��
�� r r c �$ � � e Zd ZdZd� 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�r r )r �actionr! s �r r zBusyResourceError.__init__C s �� �
���3�F�8�>�J�Kr )r/ r( �r
r r r r r) r* s @r r, r, = s �� ��
L� Lr r, c � � e Zd ZdZy)�ClosedResourceErrorz:Raised when trying to use a resource that has been closed.Nr r r r r2 r2 G s � �Dr r2 c � � e Zd ZdZy)�ConnectionFailedz�
Raised when a connection attempt fails.
.. note:: This class inherits from :exc:`OSError` for backwards compatibility.
Nr r r r r4 r4 K s � �r r4 c # � K � t | t � r%| j D ] }t |� E d { ��� � y | �� y 7 ��w)N)�
isinstancer �
exceptions�iterate_exceptions)� exception�excs r r8 r8 S s= � �� � �)�/�0��'�'�C�)�#�.�.�.� (� ��
/�s �.?�=�
?c �$ � � e Zd ZdZd� 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 �r r zDelimiterNotFound.__init__d s �� �
���:�9�+�V�L�
r )r>