Coverage for src/pullapprove/exceptions.py: 57%
7 statements
« prev ^ index » next coverage.py v7.8.2, created at 2025-06-09 21:04 -0500
« prev ^ index » next coverage.py v7.8.2, created at 2025-06-09 21:04 -0500
1from typing import TYPE_CHECKING
3if TYPE_CHECKING:
4 from .config import LargeScaleChangeModel
7class LargeScaleChangeException(Exception):
8 """
9 Can be raised to indicate this is a large-scale change,
10 often triggered by a diff so large the platform complains about it.
11 """
13 def __init__(self, large_scale_change: "LargeScaleChangeModel" = None) -> None:
14 super().__init__("Large scale change detected")
15 self.large_scale_change = large_scale_change