Home
last modified time | relevance | path

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

/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account_common.cpp132 napi_value errJs = nullptr; in QueryOAByIdCallbackCompletedCB() local
135 napi_get_null(env, &errJs); in QueryOAByIdCallbackCompletedCB()
138 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in QueryOAByIdCallbackCompletedCB()
141 ProcessCallbackOrPromise(env, asyncContext, errJs, dataJs); in QueryOAByIdCallbackCompletedCB()
294 napi_value errJs = nullptr; in RemoveOACallbackCompletedCB() local
297 napi_get_null(env, &errJs); in RemoveOACallbackCompletedCB()
300 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in RemoveOACallbackCompletedCB()
303 ProcessCallbackOrPromise(env, asyncContext, errJs, dataJs); in RemoveOACallbackCompletedCB()
350 napi_value errJs = nullptr; in SetOANameCallbackCompletedCB() local
353 napi_get_null(env, &errJs); in SetOANameCallbackCompletedCB()
[all …]
/base/account/os_account/interfaces/kits/napi/common/src/
Dnapi_account_error.cpp81 napi_value errJs = nullptr; in GenerateBusinessError() local
82 NAPI_CALL(env, napi_create_error(env, nullptr, errMsgJs, &errJs)); in GenerateBusinessError()
83 NAPI_CALL(env, napi_set_named_property(env, errJs, "code", errCodeJs)); in GenerateBusinessError()
84 NAPI_CALL(env, napi_set_named_property(env, errJs, "message", errMsgJs)); in GenerateBusinessError()
85 return errJs; in GenerateBusinessError()
111 napi_value errJs = nullptr; in GenerateBusinessSuccess() local
112 napi_get_null(env, &errJs); in GenerateBusinessSuccess()
113 return errJs; in GenerateBusinessSuccess()
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_common.cpp395 static void CreateExecutorProperty(napi_env env, GetPropertyContext &prop, napi_value &errJs, napi_… in CreateExecutorProperty() argument
400 errJs = GenerateBusinessError(env, jsErrCode, ConvertToJsErrMsg(jsErrCode)); in CreateExecutorProperty()
404 napi_get_null(env, &errJs); in CreateExecutorProperty()
525 napi_value errJs = nullptr; in OnGetInfoWork() local
529 errJs = GenerateBusinessError(env, jsErrCode, ConvertToJsErrMsg(jsErrCode)); in OnGetInfoWork()
532 napi_get_null(env, &errJs); in OnGetInfoWork()
535 CallbackAsyncOrPromise(env, context.get(), errJs, dataJs); in OnGetInfoWork()
588 napi_value errJs = nullptr; in OnGetPropertyWork() local
590 CreateExecutorProperty(context->env, *context, errJs, dataJs); in OnGetPropertyWork()
591 CallbackAsyncOrPromise(context->env, context.get(), errJs, dataJs); in OnGetPropertyWork()
[all …]
Dnapi_account_iam_identity_manager.cpp98 napi_value errJs = nullptr; in OpenSession() local
102 errJs = GenerateBusinessError(env, jsErrCode, ConvertToJsErrMsg(jsErrCode)); in OpenSession()
105 napi_get_null(env, &errJs); in OpenSession()
108 CallbackAsyncOrPromise(env, context, errJs, dataJs); in OpenSession()
/base/account/os_account/interfaces/kits/napi/domain_account/src/
Dnapi_domain_account_manager.cpp1146 napi_value errJs = nullptr; in GetAccessTokenCompleteWork() local
1152 errJs = GenerateBusinessError(asyncContext->env, asyncContext->errCode); in GetAccessTokenCompleteWork()
1154 ReturnCallbackOrPromise(asyncContext->env, asyncContext, errJs, dataJs); in GetAccessTokenCompleteWork()
1200 napi_value errJs = nullptr; in HasDomainAccountCompletedWork() local
1205 errJs = GenerateBusinessError(asyncContext->env, asyncContext->errCode); in HasDomainAccountCompletedWork()
1207 ReturnCallbackOrPromise(asyncContext->env, asyncContext, errJs, dataJs); in HasDomainAccountCompletedWork()
1319 napi_value errJs = nullptr; in UpdateAccountTokenCompletedCB() local
1322 errJs = GenerateBusinessError(asyncContext->env, asyncContext->errCode); in UpdateAccountTokenCompletedCB()
1326 ProcessCallbackOrPromise(env, asyncContext, errJs, dataJs); in UpdateAccountTokenCompletedCB()
1458 napi_value errJs = nullptr; in GetAccountInfoCompleteWork() local
[all …]
/base/account/os_account/interfaces/kits/napi/account_iam/include/
Dnapi_account_iam_common.h240 void CallbackAsyncOrPromise(napi_env env, CommonAsyncContext *context, napi_value errJs, napi_value…
/base/security/dlp_permission_service/interfaces/kits/napi_common/src/
Dnapi_common.cpp393 napi_value errJs = nullptr; in GenerateBusinessError() local
394 NAPI_CALL(env, napi_create_error(env, nullptr, errMsgJs, &errJs)); in GenerateBusinessError()
395 NAPI_CALL(env, napi_set_named_property(env, errJs, "code", errCodeJs)); in GenerateBusinessError()
396 NAPI_CALL(env, napi_set_named_property(env, errJs, "message", errMsgJs)); in GenerateBusinessError()
397 return errJs; in GenerateBusinessError()