exceptions.md
This file
Path
docs/exceptions.md
124 lines · 2.1 KiB · Markdown
Last changed by
Rework docs structure (#2308)Florimond Mancabefore adoption3a82176
History of this fileTake it
The walk stopped after 200 commits: lines older than eb46c2d point at it.
CI should just use Python 3.9, not "3.9.5" (#2010)Tom Christiebefore adoptioneb46c2d
lines 1–2why, one step back1# Exceptions2Rework docs structure (#2308)Florimond Mancabefore adoption3a82176
line 3why, one step back3This page lists exceptions that may be raised when using HTTPX.CI should just use Python 3.9, not "3.9.5" (#2010)Tom Christiebefore adoptioneb46c2d
line 4why, one step back4Rework docs structure (#2308)Florimond Mancabefore adoption3a82176
line 5why, one step back5For an overview of how to work with HTTPX exceptions, see [Exceptions (Quickstart)](quickstart.md#exceptions).CI should just use Python 3.9, not "3.9.5" (#2010)Tom Christiebefore adoptioneb46c2d
lines 6–35why, one step back67## The exception hierarchy89* HTTPError10 * RequestError11 * TransportError12 * TimeoutException13 * ConnectTimeout14 * ReadTimeout15 * WriteTimeout16 * PoolTimeout17 * NetworkError18 * ConnectError19 * ReadError20 * WriteError21 * CloseError22 * ProtocolError23 * LocalProtocolError24 * RemoteProtocolError25 * ProxyError26 * UnsupportedProtocol27 * DecodingError28 * TooManyRedirects29 * HTTPStatusError30* InvalidURL31* CookieConflict32* StreamError33 * StreamConsumed34 * ResponseNotRead35 * RequestNotReadupdate eerror docs to use StreamClosed instead of old ResponseClosed (#1913)iscai-msftbefore adoption7d3a534
line 36why, one step back36 * StreamClosedCI should just use Python 3.9, not "3.9.5" (#2010)Tom Christiebefore adoptioneb46c2d
lines 37–124why, one step back3738---3940## Exception classes4142::: httpx.HTTPError43 :docstring:4445::: httpx.RequestError46 :docstring:4748::: httpx.TransportError49 :docstring:5051::: httpx.TimeoutException52 :docstring:5354::: httpx.ConnectTimeout55 :docstring:5657::: httpx.ReadTimeout58 :docstring:5960::: httpx.WriteTimeout61 :docstring:6263::: httpx.PoolTimeout64 :docstring:6566::: httpx.NetworkError67 :docstring:6869::: httpx.ConnectError70 :docstring:7172::: httpx.ReadError73 :docstring:7475::: httpx.WriteError76 :docstring:7778::: httpx.CloseError79 :docstring:8081::: httpx.ProtocolError82 :docstring:8384::: httpx.LocalProtocolError85 :docstring:8687::: httpx.RemoteProtocolError88 :docstring:8990::: httpx.ProxyError91 :docstring:9293::: httpx.UnsupportedProtocol94 :docstring:9596::: httpx.DecodingError97 :docstring:9899::: httpx.TooManyRedirects100 :docstring:101102::: httpx.HTTPStatusError103 :docstring:104105::: httpx.InvalidURL106 :docstring:107108::: httpx.CookieConflict109 :docstring:110111::: httpx.StreamError112 :docstring:113114::: httpx.StreamConsumed115 :docstring:116117::: httpx.StreamClosed118 :docstring:119120::: httpx.ResponseNotRead121 :docstring:122123::: httpx.RequestNotRead124 :docstring: