Home
last modified time | relevance | path

Searched refs:ErrorCodeToMsg (Results 1 – 6 of 6) sorted by relevance

/base/global/i18n/interfaces/js/kits/src/
Derror_util.cpp23 static const std::unordered_map<int32_t, std::string> ErrorCodeToMsg { variable
39 auto iter = ErrorCodeToMsg.find(errCode); in NapiThrow()
40 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in NapiThrow()
/base/request/request/upload/interfaces/kits/napi/src/
Djs_util.cpp24 static const std::map<Download::ExceptionErrorCode, std::string> ErrorCodeToMsg { variable
588 auto iter = ErrorCodeToMsg.find(errorCode); in CreateBusinessError()
589 std::string strMsg = (iter != ErrorCodeToMsg.end() ? iter->second : "") + " "+ errorMessage; in CreateBusinessError()
601 … auto iter = ErrorCodeToMsg.find(static_cast<Download::ExceptionErrorCode>(vmem.responseCode)); in GetMessage()
602 if (iter != ErrorCodeToMsg.end()) { in GetMessage()
/base/request/request/download/interfaces/kits/js/napi/download_single/include/
Dnapi_utils.h41 static const std::map<ExceptionErrorCode, std::string> ErrorCodeToMsg {
/base/request/request/download/interfaces/kits/js/napi/download_single/src/
Dnapi_utils.cpp237 auto iter = ErrorCodeToMsg.find(errorCode); in CreateBusinessError()
238 std::string strMsg = (iter != ErrorCodeToMsg.end() ? iter->second : "") + " "+ errorMessage; in CreateBusinessError()
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
Dnapi_common_event.cpp54 static const std::unordered_map<int32_t, std::string> ErrorCodeToMsg { variable
298 auto iter = ErrorCodeToMsg.find(errorCode); in GetCallbackErrorValue()
299 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in GetCallbackErrorValue()
2987 auto iter = ErrorCodeToMsg.find(errCode); in NapiThrow()
2988 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in NapiThrow()
/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_addon.cpp50 static const std::unordered_map<int32_t, std::string> ErrorCodeToMsg { variable
185 auto iter = ErrorCodeToMsg.find(errCode); in FindErrMsg()
186 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in FindErrMsg()