ifw-fcf  4.1.0-pre2
actuatorRpcErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef FCF_DEVMGR_DEVICE_ACTUATOR_RPC_ERRORS_H
11 #define FCF_DEVMGR_DEVICE_ACTUATOR_RPC_ERRORS_H
12 
13 #include <unordered_map>
14 
15 namespace fcf {
16  namespace devmgr {
17  namespace actuator {
18 
19  enum {
26  RPC_ERR_LOCAL = -7
27  };
28 
29  const std::unordered_map<short, std::string> rpc_errors = {
30  {RPC_ERR_NOT_OP, "Cannot disable device. Not in OP state"},
31  {RPC_ERR_NOT_OP_READY, "Cannot enable device. Not in READY."},
32  {RPC_ERR_NOT_OP_NOTREADY, "Cannot init device. Not in NOTREADY or hardware FAILURE."},
33  {RPC_ERR_SWITCHING_ON , "Not allowed to switch ON while switching OFF"},
34  {RPC_ERR_SWITCHING_OFF, "Not allowed to switch OFF while switching ON"},
35  {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
36  };
37 
38 }
39 }
40 }
41 
42 #endif // FCF_DEVMGR_DEVICE_ACTUATOR_RPC_ERRORS_H
fcf::devmgr::actuator::RPC_ERR_NOT_OP_READY
@ RPC_ERR_NOT_OP_READY
Definition: actuatorRpcErrors.hpp:22
fcf::devmgr::actuator::rpc_errors
const std::unordered_map< short, std::string > rpc_errors
Definition: actuatorRpcErrors.hpp:29
fcf::devmgr::actuator::RPC_ERR_LOCAL
@ RPC_ERR_LOCAL
Definition: actuatorRpcErrors.hpp:26
fcf::devmgr::actuator::RPC_ERR_NOT_OP_NOTREADY
@ RPC_ERR_NOT_OP_NOTREADY
Definition: actuatorRpcErrors.hpp:23
fcf
Definition: actionMgr.cpp:29
fcf::devmgr::actuator::RPC_ERR_SWITCHING_ON
@ RPC_ERR_SWITCHING_ON
Definition: actuatorRpcErrors.hpp:24
fcf::devmgr::actuator::RPC_ERR_SWITCHING_OFF
@ RPC_ERR_SWITCHING_OFF
Definition: actuatorRpcErrors.hpp:25
fcf::devmgr::actuator::RPC_ERR_NOT_OP
@ RPC_ERR_NOT_OP
Definition: actuatorRpcErrors.hpp:21
actuator
Definition: __init__.py:1
fcf::devmgr::actuator::RPC_SUCCESS
@ RPC_SUCCESS
Definition: actuatorRpcErrors.hpp:20