<filename>TP3/exceptions/userDoestExistsException.py<gh_stars>0
class UserDoestExistsException(Exception):

    def __init__(self, username, message="User doesn't exists in users file."):
        self.username = username
        self.message = message
        super().__init__(self.message)

    def __str__(self):
        return f'{self.username} -> {self.message}'

<filename>TP3/exceptions/userDoestExistsException.py<gh_stars>0
class UserDoestExistsException(Exception):

    def __init__(self, username, message="User doesn't exists in users file."):
        self.username = username
        self.message = message
        super().__init__(self.message)

    def __str__(self):
        return f'{self.username} -> {self.message}'
