Our exception hierarchy:
HTTPError x RequestError
TransportError - TimeoutException
· ConnectTimeout · ReadTimeout · WriteTimeout · PoolTimeout
- NetworkError · ConnectError · ReadError · WriteError · CloseError
- ProtocolError · LocalProtocolError · RemoteProtocolError
- ProxyError
- UnsupportedProtocol
DecodingError
TooManyRedirects
RequestBodyUnavailable
x HTTPStatusError
InvalidURL
CookieConflict
StreamError x StreamConsumed x StreamClosed x ResponseNotRead x RequestNotRead
Function | request_context |
A context manager that can be used to attach the given request context to any RequestError exceptions that are raised within the block. |
RequestError
exceptions that are raised within the block.Parameters | |
request:Request | Undocumented |
Returns | |
typing.Iterator[ | Undocumented |