DAQ: fix bug in TransformationInvalidException handling and pass this to GUI to stop automation if critical error occurs
This commit is contained in:
1 parent
16fe6e9ef4
commit
f4718d396c
6 files changed
+198
-15
No files matched your search
@@ -35,6 +35,7 @@ class DAQErrorCode(StrEnum):
|
||||
LOOP_CENTERING_FAILED = "LOOP_CENTERING_FAILED"
|
||||
AXC_FAILED = "AXC_FAILED"
|
||||
TRANSFORMATION_INVALID = "TRANSFORMATION_INVALID"
|
||||
AUTOMATION_CRITICAL = "AUTOMATION_CRITICAL"
|
||||
SAMPLE_NOT_FOUND = "SAMPLE_NOT_FOUND"
|
||||
DATA_COLLECTION_FAILED = "DATA_COLLECTION_FAILED"
|
||||
RASTER_SCAN_FAILED = "RASTER_SCAN_FAILED"
|
||||
@@ -52,6 +53,7 @@ class DAQErrorCode(StrEnum):
|
||||
AAREDB_UNAVAILABLE = "AAREDB_UNAVAILABLE"
|
||||
MAGNET_POSITION_SENSOR_ERROR = "MAGNET_POSITION_SENSOR_ERROR"
|
||||
|
||||
|
||||
_ERROR_CODE_HELP: dict[str, str] = {
|
||||
# Auth/JWT
|
||||
AuthErrorCode.AUTHENTICATION_ERROR: (
|
||||
@@ -110,6 +112,10 @@ _ERROR_CODE_HELP: dict[str, str] = {
|
||||
DAQErrorCode.TRANSFORMATION_INVALID: (
|
||||
"The requested beamline state transition is not allowed from the current state."
|
||||
),
|
||||
DAQErrorCode.AUTOMATION_CRITICAL: (
|
||||
"A critical failure occurred during fully automated measurement. The GUI should stop "
|
||||
"dispatching further queue items and staff/operator recovery may be required."
|
||||
),
|
||||
DAQErrorCode.SAMPLE_NOT_FOUND: (
|
||||
"The requested sample could not be found in the available sample lists."
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user