Created
April 14, 2014 21:13
-
-
Save ccorcos/10683090 to your computer and use it in GitHub Desktop.
simple python exception
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): | |
def __init__(self, msg): | |
Exception.__init__(self, msg) | |
if True: | |
raise MyException("fucked up") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment