35 QLOG_ERROR() << deviceName << QString(
": incorrect device state change from \"%1\" to \"%2\"")
36 .arg(statusToString(from)).arg(statusToString(to));
44 QLOG_ERROR() << deviceName << QString(
": incorrect attempt to reset failure from \"%1\"")
45 .arg(statusToString(from));
53 return "permanent failure";
55 return "temporary failure";
#define QLOG_ERROR()
Definition: QsLog.h:104
Device can not be turned on due to hardware or configuration failure that will likely not be fixed at...
Device received command to turn on, but is starting now, and it may take some time.
Base class for all exceptions in TRIKRuntime.
Definition: trikRuntimeException.h:22
Device received command to turn off and stopping now, it may take some time.
IncorrectStateChangeException(const QString &deviceName, DeviceInterface::Status from, DeviceInterface::Status to)
Constructor.
Definition: incorrectStateChangeException.h:33
Exception for incorrect device state change, for example, from "off" to "stopping".
Definition: incorrectStateChangeException.h:26
IncorrectStateChangeException(const QString &deviceName, DeviceInterface::Status from)
Constructor, used to report incorrect resetting of failure state.
Definition: incorrectStateChangeException.h:42
Status
Device status.
Definition: deviceInterface.h:33
Definition: trikCommunicator.h:27
Device is ready and working properly.