From 5d60ebf4efba2f42c3d2cedfb2b0d067232ec71e Mon Sep 17 00:00:00 2001 From: appleb_m Date: Fri, 8 May 2026 13:10:20 +0200 Subject: [PATCH] Exceptions: added AutoRasterSampleSkipped for automation --- src/aare/common/exception_handler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aare/common/exception_handler.py b/src/aare/common/exception_handler.py index 01adca68..dc764783 100644 --- a/src/aare/common/exception_handler.py +++ b/src/aare/common/exception_handler.py @@ -35,6 +35,10 @@ class RasterScanException(Exception): return self.message +class AutoRasterSampleSkipped(Exception): + """Raised when automation should skip the current sample because auto-raster is too large.""" + + class LoopCenteringFailed(Exception): def __init__(self, message: str = "Loop Centering did not detect a sample"): super().__init__(message)