MCPcopy Create free account
hub / github.com/AimRT/AimRT / SetErrorCode

Method SetErrorCode

src/plugins/parameter_plugin/service.h:57–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 template <typename T>
57 void SetErrorCode(ErrorCode code, T& rsp) {
58 rsp.set_code(static_cast<uint32_t>(code));
59 rsp.set_msg(std::string(kErrorInfoArray[static_cast<uint32_t>(code)]));
60 }
61
62 aimrt::runtime::core::parameter::ParameterManager* parameter_manager_ptr_ = nullptr;
63};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected