| 
Server IP : 128.199.20.84  /  Your IP : 172.69.214.99 Web Server : Apache/2.4.41 (Ubuntu) System : Linux competent-maruti 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.0.20 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /lib/python2.7/../python3.8/pydoc_data/../distutils/../asyncio/  | 
| [ Home ] | [ C0mmand ] | [ Upload File ] | 
|---|
"""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)