65 def __init__(self, suspended_time: int | None = None, message: str = 'Access denied'):
66 """Generic exception to raise when an engine denies access to the results.
68 :param suspended_time: How long the engine is going to be suspended in
69 second. Defaults to None.
70 :type suspended_time: int, None
71 :param message: Internal message. Defaults to ``Access denied``
74 if suspended_time is None:
75 suspended_time = self._get_default_suspended_time()
76 super().__init__(message + ', suspended_time=' + str(suspended_time))
77 self.suspended_time = suspended_time
78 self.message = message