Format: application/x-python-code
1 o
2
3 ;'h�
4 � @ s� d dl mZ d dlZd dlmZ d dlmZ d dlmZ ej dk r'd dl
5 mZ G dd � d e�Z
6 G d
7 d� de�ZG dd
8 � d
9 e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zd"d d!�ZdS )#� )�annotationsN)� Generator)�dedent)�Any)� � )�BaseExceptionGroupc @ � e Zd ZdZdS )�BrokenResourceErrorz�
10 Raised when trying to use a resource that has been rendered unusable due to external
11 causes (e.g. a send stream whose peer has disconnected).
12 N��__name__�
13 __module__�__qualname__�__doc__� r r �MC:\Users\shubh\Videos\agent\nova\Lib\site-packages\anyio/_core/_exceptions.pyr
14 � r
15 c @ r )�BrokenWorkerProcessz}
16 Raised by :meth:`~anyio.to_process.run_sync` if the worker process terminates abruptly or
17 otherwise misbehaves.
18 Nr r r r r r r r c s0 e Zd ZdZd
19 � fdd�Zd� fdd �Z� ZS )�BrokenWorkerIntepreterzz
20 Raised by :meth:`~anyio.to_interpreter.run_sync` if an unexpected exception is
21 raised in the subinterpreter.
22 �excinfor c sP |j }|s|jr|jr|jj� d|j� �}n|jjp|j}t� �|� || _d S )Nz: )� formatted�type�msgr �super�__init__r )�selfr r �� __class__r r r s
23 zBrokenWorkerIntepreter.__init__�return�strc sJ z| j j}W n ty t� �� Y S w tdt� �� � d|� d��� �S )Nz
24 z@
25
26 Uncaught in the interpreter:
27
28 )r Z
29 errdisplay� Exceptionr �__str__r �strip)r r r r r r! , s ����zBrokenWorkerIntepreter.__str__)r r )r r )r r
30 r r r r! �
31 __classcell__r r r r r s r c �"