Home
last modified time | relevance | path

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

/ohos5.0/base/global/i18n/interfaces/js/kits/src/
H A Derror_util.cpp23 static const std::unordered_map<int32_t, std::string> ErrorCodeToMsg { variable
43 auto iter = ErrorCodeToMsg.find(errCode); in NapiThrow()
44 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in NapiThrow()
/ohos5.0/base/request/request/frameworks/cj/ffi/src/
H A Dcj_request_impl.cpp49 static const std::map<ExceptionErrorCode, std::string> ErrorCodeToMsg{ variable
67 auto iter = ErrorCodeToMsg.find(code); in Convert2RetErr()
68 std::string strMsg = (iter != ErrorCodeToMsg.end() ? iter->second : ""); in Convert2RetErr()
77 auto iter = ErrorCodeToMsg.find(err.code); in Convert2RetErr()
80 strMsg = (iter != ErrorCodeToMsg.end() ? iter->second : ""); in Convert2RetErr()
82 strMsg = (iter != ErrorCodeToMsg.end() ? iter->second + " " : "") + err.errInfo; in Convert2RetErr()
/ohos5.0/base/request/request/frameworks/js/napi/src/upload/
H A Djs_util.cpp27 static const std::map<ExceptionErrorCode, std::string> ErrorCodeToMsg{ variable
346 auto iter = ErrorCodeToMsg.find(errorCode); in CreateBusinessError()
347 std::string strMsg = (iter != ErrorCodeToMsg.end() ? iter->second : "") + " " + errorMessage; in CreateBusinessError()
/ohos5.0/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
H A Dcommon_event_parse.cpp23 static const std::unordered_map<int32_t, std::string> ErrorCodeToMsg { variable
65 auto iter = ErrorCodeToMsg.find(errCode); in NapiThrow()
66 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in NapiThrow()
83 auto iter = ErrorCodeToMsg.find(errCode); in NapiThrow()
84 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in NapiThrow()
113 auto iter = ErrorCodeToMsg.find(errorCode); in GetCallbackErrorValue()
114 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in GetCallbackErrorValue()
/ohos5.0/base/global/resource_management/interfaces/js/innerkits/core/include/
H A Dresource_manager_napi_utils.h77 static const std::unordered_map<int32_t, std::string> ErrorCodeToMsg;
/ohos5.0/base/global/resource_management/interfaces/js/innerkits/core/src/
H A Dresource_manager_napi_utils.cpp26 const std::unordered_map<int32_t, std::string> ResourceManagerNapiUtils::ErrorCodeToMsg {
141 auto iter = ResourceManagerNapiUtils::ErrorCodeToMsg.find(errCode); in FindErrMsg()
142 std::string errMsg = iter != ResourceManagerNapiUtils::ErrorCodeToMsg.end() ? iter->second : ""; in FindErrMsg()
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Dnapi_utils.cpp70 static const std::map<ExceptionErrorCode, std::string> ErrorCodeToMsg{ { E_OK, E_OK_INFO }, variable
660 auto iter = ErrorCodeToMsg.find(errorCode); in CreateBusinessError()
661 std::string strMsg = (iter != ErrorCodeToMsg.end() ? iter->second : "") + " " + errorMessage; in CreateBusinessError()