PATH:
opt
/
bitninja-python-dojo
/
embedded
/
lib
/
python3.9
/
asyncio
"""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 or file 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): r_expected = 'undefined' if expected is None else repr(expected) super().__init__(f'{len(partial)} bytes read on a total of ' f'{r_expected} expected bytes') self.partial = partial self.expected = expected def __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 = consumed def __reduce__(self): return type(self), (self.args[0], self.consumed)
[-] unix_events.py
[edit]
[-] futures.py
[edit]
[-] protocols.py
[edit]
[-] runners.py
[edit]
[-] windows_utils.py
[edit]
[-] events.py
[edit]
[-] exceptions.py
[edit]
[-] base_subprocess.py
[edit]
[+]
..
[-] queues.py
[edit]
[-] transports.py
[edit]
[-] __main__.py
[edit]
[-] selector_events.py
[edit]
[-] base_events.py
[edit]
[-] trsock.py
[edit]
[-] staggered.py
[edit]
[-] windows_events.py
[edit]
[-] streams.py
[edit]
[-] base_futures.py
[edit]
[-] constants.py
[edit]
[+]
__pycache__
[-] threads.py
[edit]
[-] subprocess.py
[edit]
[-] tasks.py
[edit]
[-] proactor_events.py
[edit]
[-] log.py
[edit]
[-] locks.py
[edit]
[-] format_helpers.py
[edit]
[-] __init__.py
[edit]
[-] sslproto.py
[edit]
[-] base_tasks.py
[edit]
[-] coroutines.py
[edit]