Home
last modified time | relevance | path

Searched refs:errMap (Results 1 - 6 of 6) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_write.cpp36 const std::map<int, std::pair<int, std::string>> errMap = { in BuildErrorByResult() local
54 return errMap.find(result) == errMap.end() ? NapiUtil::CreateNull(env) : in BuildErrorByResult()
55 NapiUtil::CreateError(env, errMap.at(result).first, errMap.at(result).second); in BuildErrorByResult()
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/js_leak_watcher/
H A Djs_leak_watcher.js24 let errMap = new Map();
25 errMap.set(ERROR_CODE_INVALID_PARAM, ERROR_MSG_INVALID_PARAM);
30 if (errMap.has(code)) {
31 msg = errMap.get(code);
/base/hiviewdfx/hiview/interfaces/js/napi/src/
H A Dhiview_napi_util.cpp76 const std::unordered_map<int32_t, std::pair<int32_t, std::string>> errMap = { in GetErrorDetailByRet() local
86 return errMap.find(retCode) == errMap.end() ? in GetErrorDetailByRet()
87 std::make_pair(HiviewNapiErrCode::ERR_DEFAULT, "Environment is abnormal.") : errMap.at(retCode); in GetErrorDetailByRet()
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/src/
H A Dnapi_hichecker.cpp152 std::map<int, std::string> errMap = { in ThrowError() local
155 if (errMap.find(errCode) != errMap.end()) { in ThrowError()
156 napi_throw_error(env, std::to_string(errCode).c_str(), errMap[errCode].c_str()); in ThrowError()
/base/hiviewdfx/hisysevent/frameworks/native/
H A Dhisysevent_tool.cpp87 std::map<int32_t, std::string> errMap = { in GetErrorDescription() local
101 return errMap.find(errCode) == errMap.end() ? in GetErrorDescription()
102 "unknown error." : errMap.at(errCode); in GetErrorDescription()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
H A Dnapi_hisysevent_util.cpp1020 const std::unordered_map<int32_t, std::pair<int32_t, std::string>> errMap = {
1073 return errMap.find(retCode) == errMap.end() ?
1074 std::make_pair(NapiError::ERR_ENV_ABNORMAL, "Abnormal environment") : errMap.at(retCode);

Completed in 5 milliseconds