Skip to content
Myr

exceptions.py

This file

Path

httpcore/exceptions.py

59 lines · 961 bytes · Python

Last changed by

Rollin'Tom Christiebefore adoption8a29a0a

History of this file

Take it

StuffTom Christiebefore adoption30530d4

lines 1–18why, one step back
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 """1718

Stream refactoring and HTTP/2 test caseTom Christiebefore adoptiona44190f

lines 19–24why, one step back
19class WriteTimeout(Timeout):
20 """21 Timeout while writing request data.22 """2324

StuffTom Christiebefore adoption30530d4

lines 25–30why, one step back
25class PoolTimeout(Timeout):
26 """27 Timeout while waiting to acquire a connection from the pool.28 """2930

AdaptersTom Christiebefore adoptionfab6fcd

lines 31–36why, one step back
31class TooManyRedirects(Exception):
32 """33 Too many redirects.34 """3536

Merge pull request #17 from encode/close-keepalive-connectionsTom Christiebefore adoption91a2a1b

line 37why, one step back
37class ProtocolError(Exception):

StuffTom Christiebefore adoption30530d4

line 38why, one step back
38 """

Merge pull request #17 from encode/close-keepalive-connectionsTom Christiebefore adoption91a2a1b

line 39why, one step back
39 Malformed HTTP.

StuffTom Christiebefore adoption30530d4

lines 40–54why, one step back
40 """
414243class StreamConsumed(Exception):44 """45 Attempted to read or stream response content, but the content has already46 been streamed.47 """484950class ResponseClosed(Exception):51 """52 Attempted to read or stream response content, but the request has been53 closed without loading the body.54 """

Rollin'Tom Christiebefore adoption8a29a0a

lines 55–59why, one step back
55
5657class InvalidURL(Exception):58 """59 """