band-aider-pub/band_aider/loop/exceptions.py
2026-07-16 18:38:58 -07:00

37 lines
1 KiB
Python

# SPDX-FileCopyrightText: 2026 Art Sea LLC
#
# SPDX-License-Identifier: AGPL-3.0-only
from __future__ import annotations
from band_aider.context.working_backlog import TestingBacklog
class BetaRequeueRequested(Exception):
"""BetaRequeueRequested rolls back the current claim and requeues Beta-owned work."""
def __init__(
self,
summary: str,
testing_item: TestingBacklog,
*,
blocked_summary: str = "",
stop: bool = False,
) -> None:
"""Store the summary and backlog item to requeue after rollback."""
super().__init__(summary)
self.summary = summary
self.testing_item = testing_item
self.blocked_summary = blocked_summary
self.stop = stop
class BetaRemediationRequested(Exception):
"""BetaRemediationRequested rolls back the current claim after source remediation is queued."""
def __init__(self, summary: str) -> None:
"""Store the remediation summary."""
super().__init__(summary)
self.summary = summary