U
    pda                     @   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                   @   s   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.8/asyncio/exceptions.pyr   	   s   r   c                   @   s   e Zd ZdZdS )r   z*The operation exceeded the given deadline.Nr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )r   z+The operation is not allowed in this state.Nr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )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   c                       s(   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 krdnt |}t t| d| d || _|| _d S )NZ	undefinedz bytes read on a total of z expected bytes)reprsuper__init__lenpartialexpected)selfr   r   Z
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                       s(   e Zd ZdZ fddZdd Z  ZS )r   zReached 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   