Added DeviceFailure
@@ -109,3 +109,10 @@ class CommandWrongState(MolerException):
class CommandTimeout(ConnectionObserverTimeout):
pass
+
+
+class DeviceFailure(MolerException):
+ def __init__(self, device, message):
+ self.device = device
+ err_msg = "Device failed '{}' with {}".format(device.get_name(), message)
+ super(DeviceFailure, self).__init__(err_msg)
