File size: 1,314 Bytes
54eb2ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class ProfileIncompleteError(Exception):
    """Exception raised when a user's profile is incomplete."""

    def __init__(self, message: str = "User profile is incomplete."):
        self.message = message
        super().__init__(self.message)


class FailedToLoadProfileError(Exception):
    """Exception raised when failing to load a user's profile."""

    def __init__(self, message: str = "Failed to load user profile."):
        self.message = message
        super().__init__(self.message)


class FailedToUpdateProfileError(Exception):
    """Exception raised when failing to update a user's profile."""

    def __init__(self, message: str = "Failed to update user profile."):
        self.message = message
        super().__init__(self.message)


class FailedToCreateProfileError(Exception):
    """Exception raised when failing to create a user's profile."""

    def __init__(self, message: str = "Failed to create user profile."):
        self.message = message
        super().__init__(self.message)


class FailedToDeleteProfileError(Exception):
    """Exception raised when failing to delete a user's profile."""

    def __init__(self, message: str = "Failed to delete user profile."):
        self.message = message
        super().__init__(self.message)