Created
October 8, 2020 15:01
-
-
Save etigui/06d5667f5309f23921e05617b6f14f7c to your computer and use it in GitHub Desktop.
Pyhton - custom 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, message): | |
super().__init__(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment