Python public recipes
Define your own exception that inherit from the top-level exception
class ExceptionName(Exception):
def __init__(self, message):
super().__init__(message)
Define your own exception that inherit from the top-level exception
class ExceptionName(Exception):
def __init__(self, message):
super().__init__(message)