Commit 01c734b
docs(waterdata): correct interruption claims to include transport errors
Module docstring, ChunkedCall.resume() Raises, and ChunkedCall._run
all listed only 429/5xx as the failures that raise ChunkInterrupted,
but _classify_chunk_error also wraps bare httpx.HTTPError (ConnectError,
TimeoutException, RemoteProtocolError, ...) and httpx.InvalidURL as
ServiceInterrupted (chunking.py:1098). So callers who only caught the
429/5xx case per the docs could miss the transport-error path.
Fix: list transport errors alongside 429/5xx in all three docstrings,
and name QuotaExhausted vs ServiceInterrupted by which case maps
where.
Surfaced by a docs-vs-code audit; no functional change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ead1c09 commit 01c734b
1 file changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
1596 | 1597 | | |
1597 | 1598 | | |
1598 | 1599 | | |
1599 | | - | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1604 | 1605 | | |
1605 | 1606 | | |
1606 | 1607 | | |
| |||
1613 | 1614 | | |
1614 | 1615 | | |
1615 | 1616 | | |
1616 | | - | |
1617 | | - | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1618 | 1620 | | |
1619 | 1621 | | |
1620 | 1622 | | |
| |||
0 commit comments