>>>>> "KY" == Ka-Ping Yee <ping@zesty.ca> writes: >> Python code has a number of cases where a higher level routine >> traps an exception and reraises it with new information and >> losing the lower level error detail in the process. KY> How about just holding on to the original exception and KY> storing it as an attribute (e.g. "cause") on the new KY> exception? +1. You may actually have a chain of exceptions so being able to follow these using a well-known attribute is a good thing. -Barry
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4