Created
May 16, 2017 20:07
-
-
Save tingletech/d6e304921408b0a4ab40afd6047a6c7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyException(Exception): | |
pass | |
class MyException2(Exception): | |
pass | |
def f1(): | |
raise MyException('helllo') | |
try: | |
f1() | |
except MyException as e: | |
raise MyException2('howdy', e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "et.py", line 17, in <module> | |
raise MyException2('howdy', e) | |
__main__.MyException2: ('howdy', MyException('helllo',)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment