exceptions.py
This file
Path
httpcore/exceptions.py
48 lines · 837 bytes · Python
Last changed by
Stream refactoring and HTTP/2 test caseTom Christiebefore adoptiona44190f
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 """2930Merge pull request #17 from encode/close-keepalive-connectionsTom Christiebefore adoption91a2a1b
line 31why, one step back31class ProtocolError(Exception):StuffTom Christiebefore adoption30530d4
line 32why, one step back32 """Merge pull request #17 from encode/close-keepalive-connectionsTom Christiebefore adoption91a2a1b
line 33why, one step back33 Malformed HTTP.StuffTom Christiebefore adoption30530d4
lines 34–48why, one step back34 """353637class StreamConsumed(Exception):38 """39 Attempted to read or stream response content, but the content has already40 been streamed.41 """424344class ResponseClosed(Exception):45 """46 Attempted to read or stream response content, but the request has been47 closed without loading the body.48 """