exceptions.py
This file
Path
httpcore/exceptions.py
59 lines · 961 bytes · Python
Last changed by
Rollin'Tom Christiebefore adoption8a29a0a
History of this fileTake 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 TooManyRedirects(Exception):32 """33 Too many redirects.34 """353637class ProtocolError(Exception):38 """39 Malformed HTTP.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 """555657class InvalidURL(Exception):58 """59 """