Commit 9fdd75e
committed
dss_sharp.Error.UseExceptions: Toggle mapping Error.Number to C# exceptions
Previously, we forced the use of exceptions. Now users can easily toggle
the behavior. The default will still be to use exceptions for the safety
of new users, besides the added convenience.
**Usage:** set `dss_sharp.Error.UseExceptions = false` to deactivate the
automatic mapping. Other toggles as `Error.EarlyAbort` and the upcoming
`DSS.CompatFlags` should be enough to more closely match the logic of
older programs using the official COM DLL behavior even for the more
lax usage of OpenDSS.
Closes #151 parent 7102dc6 commit 9fdd75e
3 files changed
+42
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
79 | | - | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
7276 | 7275 | | |
7277 | 7276 | | |
7278 | 7277 | | |
7279 | | - | |
7280 | | - | |
7281 | | - | |
7282 | | - | |
7283 | | - | |
7284 | | - | |
7285 | | - | |
7286 | | - | |
| 7278 | + | |
7287 | 7279 | | |
7288 | 7280 | | |
7289 | 7281 | | |
| |||
7294 | 7286 | | |
7295 | 7287 | | |
7296 | 7288 | | |
7297 | | - | |
7298 | | - | |
7299 | | - | |
7300 | | - | |
7301 | | - | |
7302 | | - | |
7303 | | - | |
7304 | | - | |
| 7289 | + | |
7305 | 7290 | | |
7306 | 7291 | | |
7307 | 7292 | | |
| |||
7348 | 7333 | | |
7349 | 7334 | | |
7350 | 7335 | | |
7351 | | - | |
7352 | | - | |
7353 | | - | |
| 7336 | + | |
| 7337 | + | |
7354 | 7338 | | |
7355 | 7339 | | |
7356 | 7340 | | |
| |||
7382 | 7366 | | |
7383 | 7367 | | |
7384 | 7368 | | |
| 7369 | + | |
| 7370 | + | |
| 7371 | + | |
| 7372 | + | |
| 7373 | + | |
| 7374 | + | |
| 7375 | + | |
| 7376 | + | |
| 7377 | + | |
| 7378 | + | |
| 7379 | + | |
| 7380 | + | |
| 7381 | + | |
| 7382 | + | |
| 7383 | + | |
| 7384 | + | |
| 7385 | + | |
| 7386 | + | |
| 7387 | + | |
| 7388 | + | |
| 7389 | + | |
| 7390 | + | |
| 7391 | + | |
| 7392 | + | |
| 7393 | + | |
7385 | 7394 | | |
7386 | 7395 | | |
7387 | 7396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
213 | 222 | | |
214 | 223 | | |
| 224 | + | |
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
| |||
0 commit comments