U e5da�@sldZdZGdd�de�ZGdd�de�ZGdd�de�ZGdd �d e�ZGd d �d e �Z Gd d �d e�Z dS)zasyncio exceptions.)�CancelledError�InvalidStateError� TimeoutError�IncompleteReadError�LimitOverrunError�SendfileNotAvailableErrorc@seZdZdZdS)rz!The Future or Task was cancelled.N��__name__� __module__� __qualname__�__doc__�r r �*/usr/lib64/python3.8/asyncio/exceptions.pyr src@seZdZdZdS)rz*The operation exceeded the given deadline.Nrr r r r r src@seZdZdZdS)rz+The operation is not allowed in this state.Nrr r r r rsrc@seZdZdZdS)rz~Sendfile syscall is not available. Raised if OS does not support sendfile syscall for given socket or file type. Nrr r r r rsrcs(eZdZdZ�fdd�Zdd�Z�ZS)rz� 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) cs@|dkr dnt|�}t��t|��d|�d��||_||_dS)NZ undefinedz bytes read on a total of z expected bytes)�repr�super�__init__�len�partial�expected)�selfrrZ r_expected�� __class__r r r$szIncompleteReadError.__init__cCst|�|j|jffS�N)�typerr�rr r r � __reduce__+szIncompleteReadError.__reduce__�rr r r rr� __classcell__r r rr rs rcs(eZdZdZ�fdd�Zdd�Z�ZS)rz�Reached the buffer limit while looking for a separator. Attributes: - consumed: total number of to be consumed bytes. cst��|�||_dSr)rr�consumed)r�messagerrr r r5s zLimitOverrunError.__init__cCst|�|jd|jffS)N�)r�argsrrr r r r9szLimitOverrunError.__reduce__rr r rr r/s rN) r �__all__� BaseExceptionr� Exceptionrr� RuntimeErrorr�EOFErrorrrr r r r �s