10 lines
281 B
Python
10 lines
281 B
Python
|
class UserNotFoundError(Exception):
|
||
|
"""PycordUser could not find user with such an ID in the database"""
|
||
|
|
||
|
def __init__(self, user_id: int) -> None:
|
||
|
self.user_id = user_id
|
||
|
|
||
|
super().__init__(
|
||
|
f"User with id {self.user_id} was not found"
|
||
|
)
|