class MaxPendingInterruptsError(Exception):
    def __init__(self, task_id: str, max_pending_interrupts: int):
        self.task_id = task_id
        self.max_pending_interrupts = max_pending_interrupts
        super().__init__(
            f"Max pending interrupts of {max_pending_interrupts} reached for task {task_id}"
        )
