import logging class PermissionDeniedException(Exception): def __init__(self, message): self.message = message logging.error(message)