ifw-fcf 6.0.0
Loading...
Searching...
No Matches
shutterRpcErrors.hpp
Go to the documentation of this file.
1
10#ifndef FCF_DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
11#define FCF_DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
12
13// System headers
14#include <unordered_map>
15
16namespace fcf::devmgr::shutter {
17
18 enum {
25 RPC_ERR_LOCAL = -6
26 };
27
28 const std::unordered_map<short, std::string> rpc_errors = {
29 {RPC_ERR_NOT_OP, "Cannot disable shutter. Not in OP state"},
30 {RPC_ERR_NOT_OP_READY, "Cannot enable shutter. Not in READY or FAILURE."},
31 {RPC_ERR_STILL_OPENNING , "Not allowed to close the shutter while it is still openning"},
32 {RPC_ERR_STILL_CLOSING, "Not allowed to open the shutter while it is still closing"},
33 {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
34 };
35
36}
37#endif // FCF_DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
Definition: shutter.hpp:19
@ RPC_SUCCESS
Definition: shutterRpcErrors.hpp:19
@ RPC_ERR_STILL_OPENNING
Definition: shutterRpcErrors.hpp:23
@ RPC_ERR_NOT_OP_READY
Definition: shutterRpcErrors.hpp:21
@ RPC_ERR_NOT_OP_NOTREADY
Definition: shutterRpcErrors.hpp:22
@ RPC_ERR_LOCAL
Definition: shutterRpcErrors.hpp:25
@ RPC_ERR_NOT_OP
Definition: shutterRpcErrors.hpp:20
@ RPC_ERR_STILL_CLOSING
Definition: shutterRpcErrors.hpp:24
const std::unordered_map< short, std::string > rpc_errors
Definition: shutterRpcErrors.hpp:28