DAQ: class added for critical Tell Failure and a warning exception for TELL errors
This commit is contained in:
@@ -66,6 +66,24 @@ class MountingFailed(Exception):
|
||||
def __str__(self):
|
||||
return self.message
|
||||
|
||||
class WarningTellException(Exception):
|
||||
def __init__(self, message="Warning error in TELL"):
|
||||
super().__init__(message)
|
||||
self.message = message
|
||||
logger.error(f"{message}", extra={"exception:": Exception})
|
||||
|
||||
def __str__(self):
|
||||
return self.message
|
||||
|
||||
class CriticalTellException(Exception):
|
||||
def __init__(self, message="Critical error in TELL"):
|
||||
super().__init__(message)
|
||||
self.message = message
|
||||
logger.error(f"{message}", extra={"exception:": Exception})
|
||||
|
||||
def __str__(self):
|
||||
return self.message
|
||||
|
||||
class AareDAQ:
|
||||
def __init__(self, cfg: BeamlineConfig, bl: MXBeamline):
|
||||
self.last_time = 0.0
|
||||
|
||||
Reference in New Issue
Block a user