Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 52dd95f point at it.

Fix extenstions typo in AsyncHTTPTransport (#1549)Jonas Lundbergbefore adoption52dd95f

lines 1–2why, one step back
1# Exceptions
2

Rework docs structure (#2308)Florimond Mancabefore adoption3a82176

line 3why, one step back
3This page lists exceptions that may be raised when using HTTPX.

Fix extenstions typo in AsyncHTTPTransport (#1549)Jonas Lundbergbefore adoption52dd95f

line 4why, one step back
4

Rework docs structure (#2308)Florimond Mancabefore adoption3a82176

line 5why, one step back
5For an overview of how to work with HTTPX exceptions, see [Exceptions (Quickstart)](quickstart.md#exceptions).

Fix extenstions typo in AsyncHTTPTransport (#1549)Jonas Lundbergbefore adoption52dd95f

lines 6–35why, one step back
6
7## 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 * RequestNotRead

update eerror docs to use StreamClosed instead of old ResponseClosed (#1913)iscai-msftbefore adoption7d3a534

line 36why, one step back
36 * StreamClosed

Fix extenstions typo in AsyncHTTPTransport (#1549)Jonas Lundbergbefore adoption52dd95f

lines 37–116why, one step back
37
38---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:116

`httpx.ResponseClosed` -> `httpx.StreamClosed` (#1584)Tom Christiebefore adoption9b8f5af

line 117why, one step back
117::: httpx.StreamClosed

Fix extenstions typo in AsyncHTTPTransport (#1549)Jonas Lundbergbefore adoption52dd95f

lines 118–119why, one step back
118 :docstring:
119

`httpx.ResponseClosed` -> `httpx.StreamClosed` (#1584)Tom Christiebefore adoption9b8f5af

line 120why, one step back
120::: httpx.ResponseNotRead

Fix extenstions typo in AsyncHTTPTransport (#1549)Jonas Lundbergbefore adoption52dd95f

lines 121–122why, one step back
121 :docstring:
122

`httpx.ResponseClosed` -> `httpx.StreamClosed` (#1584)Tom Christiebefore adoption9b8f5af

line 123why, one step back
123::: httpx.RequestNotRead

Fix extenstions typo in AsyncHTTPTransport (#1549)Jonas Lundbergbefore adoption52dd95f

line 124why, one step back
124 :docstring: