Commit b7f14e1
Cycle 14: constructor ValueError → ProgrammingError at DBAPI boundary
Per PEP 249, ProgrammingError covers programming-level mistakes at
the API (bad argument types, bad parameter shapes, etc.). timeout=-1
is exactly that. ValueError leaked out of the dbapi's public
connect()/Connection()/AsyncConnection() surface; swap to
ProgrammingError for hierarchy consistency.
Client layer keeps ValueError — it's pre-DBAPI, below the PEP 249
surface, and ValueError is right there.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b886518 commit b7f14e1
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments