Skip to content
Myr

exceptions.py

This file

Path

httpcore/exceptions.py

71 lines · 1.1 KiB · Python

Last changed by

RedirectionsTom Christiebefore adoption041813b

History of this file

Take it

1class Timeout(Exception):2    """3    A base class for all timeouts.4    """567class ConnectTimeout(Timeout):8    """9    Timeout while establishing a connection.10    """111213class ReadTimeout(Timeout):14    """15    Timeout while reading response data.16    """171819class WriteTimeout(Timeout):20    """21    Timeout while writing request data.22    """232425class PoolTimeout(Timeout):26    """27    Timeout while waiting to acquire a connection from the pool.28    """293031class RedirectError(Exception):32    """33    Base class for HTTP redirect errors.34    """353637class TooManyRedirects(RedirectError):38    """39    Too many redirects.40    """414243class RedirectLoop(RedirectError):44    """45    Infinite redirect loop.46    """474849class ProtocolError(Exception):50    """51    Malformed HTTP.52    """535455class StreamConsumed(Exception):56    """57    Attempted to read or stream response content, but the content has already58    been streamed.59    """606162class ResponseClosed(Exception):63    """64    Attempted to read or stream response content, but the request has been65    closed without loading the body.66    """676869class InvalidURL(Exception):70    """71    """