Created
March 11, 2017 00:09
-
-
Save imdanielch/2c313d40a8aa4819334ccf51bb98e9cf 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 CustomError(Exception): # Name it whatever you want. | |
def __init__(self, value): | |
¦ self.value = value | |
def __str__(self): | |
¦ return repr(self.value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment