?
| Path : /lib64/python3.8/asyncio/__pycache__/ |
| Current File : //lib64/python3.8/asyncio/__pycache__/exceptions.cpython-38.pyc |
U
e5da @ sl d Z dZG dd deZG dd deZG dd deZG dd d eZG d
d de Z
G dd
d
eZdS )zasyncio exceptions.)CancelledErrorInvalidStateErrorTimeoutErrorIncompleteReadErrorLimitOverrunErrorSendfileNotAvailableErrorc @ s e Zd ZdZdS )r z!The Future or Task was cancelled.N__name__
__module____qualname____doc__ r r */usr/lib64/python3.8/asyncio/exceptions.pyr s r c @ s e Zd ZdZdS )r z*The operation exceeded the given deadline.Nr r r r r
r
s r c @ s e Zd ZdZdS )r z+The operation is not allowed in this state.Nr r r r r
r s r c @ s e Zd ZdZdS )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 Zd ZdZ fddZdd Z ZS )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 krdnt |}t t| d| d || _|| _d S )NZ undefinedz bytes read on a total of z expected bytes)reprsuper__init__lenpartialexpected)selfr r Z
r_expected __class__r r
r $ s zIncompleteReadError.__init__c C s t | | j| jffS N)typer r r r r r
__reduce__+ s zIncompleteReadError.__reduce__r r r
r r r
__classcell__r r r r
r s r c s( e Zd ZdZ fddZdd Z ZS )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 zLimitOverrunError.__init__c C s t | | jd | jffS )N )r argsr r r r r
r 9 s zLimitOverrunError.__reduce__r r r r r
r / s r N)r __all__
BaseExceptionr Exceptionr r RuntimeErrorr EOFErrorr r r r r r
<module> s