Home
last modified time | relevance | path

Searched refs:CreateErrorValue (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_utils.cpp83 napi_value Common::CreateErrorValue(napi_env env, int32_t errCode, bool newType) in CreateErrorValue() function in OHOS::NotificationNapi::Common
104 napi_value Common::CreateErrorValue(napi_env env, int32_t errCode, std::string &msg) in CreateErrorValue() function in OHOS::NotificationNapi::Common
129 napi_throw(env, CreateErrorValue(env, errCode, true)); in NapiThrow()
136 napi_throw(env, CreateErrorValue(env, errCode, msg)); in NapiThrow()
188 results[PARAM0] = CreateErrorValue(env, errorCode, newType); in SetCallback()
230 napi_reject_deferred(env, deferred, CreateErrorValue(env, errorCode, newType)); in SetPromise()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_xcomponent_controller.cpp46 napi_value CreateErrorValue(napi_env env, int32_t errCode, const std::string& errMsg = "") in CreateErrorValue() function
74 result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_UNSUPPORTED); in HandleDeferred()
78 result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_IS_ONGOING); in HandleDeferred()
82 result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_IS_STOPPED); in HandleDeferred()
266 napi_value result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_IS_ONGOING); in StartImageAnalyzer()
H A Djs_tabs_controller.cpp38 napi_value CreateErrorValue(napi_env env, int32_t errCode, const std::string& errMsg = "") in CreateErrorValue() function
68 result = CreateErrorValue(env, errorCode, message); in HandleDeferred()
H A Djs_view_context.cpp383 napi_value CreateErrorValue(napi_env env, int32_t errCode, const std::string& errMsg = "") in CreateErrorValue() function
418 napi_value result = CreateErrorValue(env, errCode, BIND_SHEET_ERROR_MAP[errCode]); in ReturnPromise()
/ohos5.0/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_utils.cpp76 napi_value NotificationNapi::CreateErrorValue(napi_env env, int32_t errCode, bool newType) in CreateErrorValue() function in OHOS::Location::NotificationNapi
101 napi_throw(env, CreateErrorValue(env, errCode, true)); in NapiThrow()
154 results[PARAM0] = CreateErrorValue(env, errorCode, newType); in SetCallback()
196 napi_reject_deferred(env, deferred, CreateErrorValue(env, errorCode, newType)); in SetPromise()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_rendering_context.cpp332 napi_value CreateErrorValue(napi_env env, int32_t errCode, const std::string& errMsg = "") in CreateErrorValue() function
360 result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_UNSUPPORTED); in HandleDeferred()
364 result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_IS_ONGOING); in HandleDeferred()
368 result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_IS_STOPPED); in HandleDeferred()
413 napi_value result = CreateErrorValue(env, ERROR_CODE_AI_ANALYSIS_IS_ONGOING); in JsStartImageAnalyzer()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_string.cpp60 napi_value CreateErrorValue(napi_env env, int32_t errCode, const std::string& errMsg = "") in CreateErrorValue() function
87 …napi_value error = CreateErrorValue(asyncContext->env, callbackCode, ASYNC_ERROR_MAP[callbackCode]… in ProcessPromiseCallback()
104 napi_value result = CreateErrorValue(env, errCode, ASYNC_ERROR_MAP[errCode]); in ReturnPromise()
836 … napi_value error = CreateErrorValue(asyncContext->env, ERROR_CODE_STYLED_STRING_CONVERT_ERROR, in UnmarshallingComplete()
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dcommon.h1694 static napi_value CreateErrorValue(napi_env env, int32_t errCode, bool newType);
1704 static napi_value CreateErrorValue(napi_env env, int32_t errCode, std::string &msg);
/ohos5.0/base/location/frameworks/js/napi/notification/include/
H A Dnotification_napi.h1250 static napi_value CreateErrorValue(napi_env env, int32_t errCode, bool newType);
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/wantagent/
H A Dnapi_want_agent.cpp94 napi_value CreateErrorValue(napi_env env, int32_t errCode) in CreateErrorValue() function
115 napi_throw(env, CreateErrorValue(env, errCode)); in NapiThrow()