""" Custom exceptions for permission-related errors. """ class NotFound(Exception): """Exception raised when a user is not found.""" def __init__(self, message="User not found"): self.message = message super().__init__(self.message)