
    Rh                         d Z dZ G d de      Ze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)zasyncio exceptions.)BrokenBarrierErrorCancelledErrorInvalidStateErrorTimeoutErrorIncompleteReadErrorLimitOverrunErrorSendfileNotAvailableErrorc                       e Zd ZdZy)r   z!The Future or Task was cancelled.N__name__
__module____qualname____doc__     )/usr/lib/python3.12/asyncio/exceptions.pyr   r   
   s    +r   r   c                       e Zd ZdZy)r   z+The operation is not allowed in this state.Nr
   r   r   r   r   r      s    5r   r   c                       e Zd ZdZy)r   z~Sendfile syscall is not available.

    Raised if OS does not support sendfile syscall for given socket or
    file type.
    Nr
   r   r   r   r   r      s    r   r   c                   (     e Zd ZdZ fdZd Z xZS )r   z
    Incomplete read error. Attributes:

    - partial: read bytes string before the end of stream was reached
    - expected: total number of expected bytes (or None if unknown)
    c                 |    |dn
t        |      }t        | 	  t        |       d| d       || _        || _        y )N	undefinedz bytes read on a total of z expected bytes)reprsuper__init__lenpartialexpected)selfr   r   
r_expected	__class__s       r   r   zIncompleteReadError.__init__$   sE    $,$4[$x.
CL>)C&<8 	9 r   c                 H    t        |       | j                  | j                  ffS N)typer   r   r   s    r   
__reduce__zIncompleteReadError.__reduce__+   s    DzDLL$--888r   r   r   r   r   r   r$   __classcell__r   s   @r   r   r      s    !9r   r   c                   (     e Zd ZdZ fdZd Z xZS )r   zReached the buffer limit while looking for a separator.

    Attributes:
    - consumed: total number of to be consumed bytes.
    c                 2    t         |   |       || _        y r!   )r   r   consumed)r   messager*   r   s      r   r   zLimitOverrunError.__init__5   s    ! r   c                 N    t        |       | j                  d   | j                  ffS )N    )r"   argsr*   r#   s    r   r$   zLimitOverrunError.__reduce__9   s"    DzDIIaL$--888r   r%   r'   s   @r   r   r   /   s    
!9r   r   c                       e Zd ZdZy)r   z*Barrier is broken by barrier.abort() call.Nr
   r   r   r   r   r   =   s    4r   r   N)r   __all__BaseExceptionr   r   	Exceptionr   RuntimeErrorr   EOFErrorr   r   r   r   r   r   <module>r5      s^    (,] , 6	 6 9( 9$9	 95 5r   