"""asyncio exceptions."""__all__ = ('CancelledError', 'InvalidStateError', 'TimeoutError','IncompleteReadError', 'LimitOverrunError','SendfileNotAvailableError')class CancelledError(BaseException):"""The Future or Task was cancelled."""class TimeoutError(Exception):"""The operation exceeded the given deadline."""class InvalidStateError(Exception):"""The operation is not allowed in this state."""class SendfileNotAvailableError(RuntimeError):"""Sendfile syscall is not available.Raised if OS does not support sendfile syscall for given socket orfile type."""class IncompleteReadError(EOFError):"""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)"""def __init__(self, partial, expected):super().__init__(f'{len(partial)} bytes read on a total of 'f'{expected!r} expected bytes')self.partial = partialself.expected = expecteddef __reduce__(self):return type(self), (self.partial, self.expected)class LimitOverrunError(Exception):"""Reached the buffer limit while looking for a separator.Attributes:- consumed: total number of to be consumed bytes."""def __init__(self, message, consumed):super().__init__(message)self.consumed = consumeddef __reduce__(self):return type(self), (self.args[0], self.consumed)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。