Repository navigation
Commit e45d46e
Raise each VortexErrorKind as its Python exception class
The Python bindings turned every VortexError into RuntimeError, so none of
the kinds reached Python, where they were designed to mean something: a
caller could not catch an IndexError or a KeyError, because there was
never one to catch.
Each kind now raises the exception it is the analogue of:
OutOfBounds IndexError
NotFound KeyError
Overflow OverflowError
InvalidArgument ValueError
Serde ValueError
MismatchedTypes TypeError
NotImplemented NotImplementedError
AssertionFailed AssertionError
Io OSError
Other RuntimeError
The one test that asserted RuntimeError was checking that an unserializable
expression reports clearly; it now expects the NotImplementedError that
operation raises.
Signed-off-by: Robert Kruszewski <github@robertk.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S7EtMqoZ91rrCCh9vS2yTm1 parent 2087482 commit e45d46e
2 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
| 16 | + | |
8 | 17 | | |
9 | 18 | | |
10 | 19 | | |
| |||
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
40 | | - | |
| 49 | + | |
41 | 50 | | |
42 | 51 | | |
43 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments