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

Method SetErrorCode

src/plugins/log_control_plugin/service.h:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41 template <typename T>
42 void SetErrorCode(ErrorCode code, T& rsp) {
43 rsp.set_code(static_cast<uint32_t>(code));
44 rsp.set_msg(std::string(kErrorInfoArray[static_cast<uint32_t>(code)]));
45 }
46
47 aimrt::runtime::core::logger::LoggerManager* logger_manager_ptr_ = nullptr;
48};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected