Skip to content

Instantly share code, notes, and snippets.

@etigui
Created October 8, 2020 15:01
Show Gist options
  • Save etigui/06d5667f5309f23921e05617b6f14f7c to your computer and use it in GitHub Desktop.
Save etigui/06d5667f5309f23921e05617b6f14f7c to your computer and use it in GitHub Desktop.
Pyhton - custom exception
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