Commit 69a3ce1
committed
model: reword error messages for assoc. sets
I want to print out precise messages, so I needed to replace the
standard dict with my very own implementation called Declarations
because otherwise I would have to add try..except everywhere. The class
Declarations just overwrites the method __getitem__ (the operator square
braces []) where I catch the KeyError exception and raise my own
KeyError exception with an appropriate message.1 parent e592063 commit 69a3ce1
2 files changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
563 | 571 | | |
564 | 572 | | |
565 | 573 | | |
566 | | - | |
| 574 | + | |
567 | 575 | | |
568 | 576 | | |
569 | 577 | | |
| |||
725 | 733 | | |
726 | 734 | | |
727 | 735 | | |
728 | | - | |
| 736 | + | |
729 | 737 | | |
730 | 738 | | |
731 | 739 | | |
732 | 740 | | |
733 | 741 | | |
734 | | - | |
| 742 | + | |
| 743 | + | |
735 | 744 | | |
736 | 745 | | |
737 | 746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
207 | 222 | | |
208 | 223 | | |
209 | 224 | | |
| |||
0 commit comments