/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
D | napi_os_account_common.cpp | 132 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/ |
D | napi_account_error.cpp | 81 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/ |
D | napi_account_iam_common.cpp | 395 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 …]
|
D | napi_account_iam_identity_manager.cpp | 98 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/ |
D | napi_domain_account_manager.cpp | 1146 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/ |
D | napi_account_iam_common.h | 240 void CallbackAsyncOrPromise(napi_env env, CommonAsyncContext *context, napi_value errJs, napi_value…
|
/base/security/dlp_permission_service/interfaces/kits/napi_common/src/ |
D | napi_common.cpp | 393 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()
|