Commit 728ce4f
committed
code-health: expose DatabaseError properties
Provide explicit handles to extract DatabaseError exceptions properties.
Before this patch, one could extract Tarantool error code only through
internal `args` property.
Unfortunately, current exceptions API is inconsistent. Code uses
`DatabaseError(code, message)`, `NetworkError(message)` and
`NetworkError(exc)`, while NetworkError is a child class of
DatabaseError.
This patch shouldn't break current behavior.
Part of #2061 parent 8758d8a commit 728ce4f
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
44 | 62 | | |
45 | 63 | | |
46 | 64 | | |
| |||
206 | 224 | | |
207 | 225 | | |
208 | 226 | | |
209 | | - | |
210 | | - | |
211 | 227 | | |
212 | 228 | | |
213 | 229 | | |
| |||
0 commit comments