exceptions.py
This file
Path
httpcore/exceptions.py
71 lines · 1.1 KiB · Python
Last changed by
RedirectionsTom Christiebefore adoption041813b
History of this fileTake it
StuffTom Christiebefore adoption30530d4
lines 1–18why, one step back1class 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 """1718Stream refactoring and HTTP/2 test caseTom Christiebefore adoptiona44190f
lines 19–24why, one step back19class WriteTimeout(Timeout):20 """21 Timeout while writing request data.22 """2324StuffTom Christiebefore adoption30530d4
lines 25–30why, one step back25class PoolTimeout(Timeout):26 """27 Timeout while waiting to acquire a connection from the pool.28 """2930RedirectionsTom Christiebefore adoption041813b
line 31why, one step back31class RedirectError(Exception):AdaptersTom Christiebefore adoptionfab6fcd
line 32why, one step back32 """RedirectionsTom Christiebefore adoption041813b
lines 33–38why, one step back33 Base class for HTTP redirect errors.34 """353637class TooManyRedirects(RedirectError):38 """AdaptersTom Christiebefore adoptionfab6fcd
line 39why, one step back39 Too many redirects.RedirectionsTom Christiebefore adoption041813b
lines 40–45why, one step back40 """414243class RedirectLoop(RedirectError):44 """45 Infinite redirect loop.AdaptersTom Christiebefore adoptionfab6fcd
lines 46–48why, one step back46 """4748Merge pull request #17 from encode/close-keepalive-connectionsTom Christiebefore adoption91a2a1b
line 49why, one step back49class ProtocolError(Exception):StuffTom Christiebefore adoption30530d4
line 50why, one step back50 """Merge pull request #17 from encode/close-keepalive-connectionsTom Christiebefore adoption91a2a1b
line 51why, one step back51 Malformed HTTP.StuffTom Christiebefore adoption30530d4
lines 52–66why, one step back52 """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 """Rollin'Tom Christiebefore adoption8a29a0a
lines 67–71why, one step back676869class InvalidURL(Exception):70 """71 """