o
    éT•ja  ã                   @   sl   d Z dZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ de	ƒZ
G dd„ deƒZdS )zasyncio exceptions.)ÚCancelledErrorÚInvalidStateErrorÚTimeoutErrorÚIncompleteReadErrorÚLimitOverrunErrorÚSendfileNotAvailableErrorc                   @   ó   e Zd ZdZdS )r   z!The Future or Task was cancelled.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú)/usr/lib/python3.10/asyncio/exceptions.pyr   	   ó    r   c                   @   r   )r   z*The operation exceeded the given deadline.Nr   r   r   r   r   r      r   r   c                   @   r   )r   z+The operation is not allowed in this state.Nr   r   r   r   r   r      r   r   c                   @   r   )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      r   r   c                       ó(   e Zd ZdZ‡ fdd„Zdd„ Z‡  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                    s@   |d u rdnt |ƒ}tƒ  t|ƒ› d|› d�¡ || _|| _d S )NÚ	undefinedz bytes read on a total of z expected bytes)ÚreprÚsuperÚ__init__ÚlenÚpartialÚexpected)Úselfr   r   Ú
r_expected©Ú	__class__r   r   r   $   s   
ÿ
zIncompleteReadError.__init__c                 C   s   t | ƒ| j| jffS ©N)Útyper   r   ©r   r   r   r   Ú
__reduce__+   s   zIncompleteReadError.__reduce__©r	   r
   r   r   r   r   Ú__classcell__r   r   r   r   r      s    r   c                       r   )r   zƒReached the buffer limit while looking for a separator.

    Attributes:
    - consumed: total number of to be consumed bytes.
    c                    s   t ƒ  |¡ || _d S r   )r   r   Úconsumed)r   Úmessager"   r   r   r   r   5   s   
zLimitOverrunError.__init__c                 C   s   t | ƒ| jd | jffS )Né    )r   Úargsr"   r   r   r   r   r   9   s   zLimitOverrunError.__reduce__r    r   r   r   r   r   /   s    r   N)r   Ú__all__ÚBaseExceptionr   Ú	Exceptionr   r   ÚRuntimeErrorr   ÚEOFErrorr   r   r   r   r   r   Ú<module>   s    