/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() 286 napi_value errJs = nullptr; in RemoveOACallbackCompletedCB() local 289 napi_get_null(env, &errJs); in RemoveOACallbackCompletedCB() 292 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in RemoveOACallbackCompletedCB() 295 ProcessCallbackOrPromise(env, asyncContext, errJs, dataJs); in RemoveOACallbackCompletedCB() 342 napi_value errJs = nullptr; in SetOANameCallbackCompletedCB() local 345 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 | 389 static void CreateExecutorProperty(napi_env env, GetPropertyContext &prop, napi_value &errJs, napi_… in CreateExecutorProperty() argument 394 errJs = GenerateBusinessError(env, jsErrCode, ConvertToJsErrMsg(jsErrCode)); in CreateExecutorProperty() 398 napi_get_null(env, &errJs); in CreateExecutorProperty() 512 napi_value errJs = nullptr; in OnGetInfoWork() local 516 errJs = GenerateBusinessError(env, jsErrCode, ConvertToJsErrMsg(jsErrCode)); in OnGetInfoWork() 519 napi_get_null(env, &errJs); in OnGetInfoWork() 522 CallbackAsyncOrPromise(env, context.get(), errJs, dataJs); in OnGetInfoWork() 573 napi_value errJs = nullptr; in OnGetPropertyWork() local 575 CreateExecutorProperty(context->env, *context, errJs, dataJs); in OnGetPropertyWork() 576 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/appaccount/src/ |
D | napi_account_capability_scheduler.cpp | 419 napi_value errJs = nullptr; in ExecuteRequestCompletedWork() local 450 errJs = CreateNapiErrData(asyncContext->env, asyncContext->businessError); in ExecuteRequestCompletedWork() 455 ReturnCallbackOrPromise(asyncContext->env, asyncContext, errJs, dataJs); in ExecuteRequestCompletedWork() 528 napi_value errJs = nullptr; in OnRequestRedirectedWork() local 534 errJs = GenerateBusinessError(asyncContext->env, ERR_JS_SYSTEM_SERVICE_EXCEPTION); in OnRequestRedirectedWork() 536 errJs = AppExecFwk::WrapWantParams(asyncContext->env, params); in OnRequestRedirectedWork() 541 ReturnCallbackOrPromise(asyncContext->env, asyncContext, errJs, dataJs); in OnRequestRedirectedWork() 557 napi_value errJs = nullptr; in ReleaseOrErrorCommonWork() local 560 errJs = GenerateBusinessError(asyncContext->env, ERR_JS_SYSTEM_SERVICE_EXCEPTION); in ReleaseOrErrorCommonWork() 562 ReturnCallbackOrPromise(asyncContext->env, asyncContext, errJs, dataJs); in ReleaseOrErrorCommonWork() [all …]
|
/base/account/os_account/interfaces/kits/napi/domain_account/src/ |
D | napi_domain_account_manager.cpp | 1125 napi_value errJs = nullptr; in GetAccessTokenCompleteWork() local 1131 errJs = GenerateBusinessError(asyncContext->env, asyncContext->errCode); in GetAccessTokenCompleteWork() 1133 ReturnCallbackOrPromise(asyncContext->env, asyncContext, errJs, dataJs); in GetAccessTokenCompleteWork() 1173 napi_value errJs = nullptr; in HasDomainAccountCompletedWork() local 1178 errJs = GenerateBusinessError(asyncContext->env, asyncContext->errCode); in HasDomainAccountCompletedWork() 1180 ReturnCallbackOrPromise(asyncContext->env, asyncContext, errJs, dataJs); in HasDomainAccountCompletedWork() 1292 napi_value errJs = nullptr; in UpdateAccountTokenCompletedCB() local 1295 errJs = GenerateBusinessError(asyncContext->env, asyncContext->errCode); in UpdateAccountTokenCompletedCB() 1299 ProcessCallbackOrPromise(env, asyncContext, errJs, dataJs); in UpdateAccountTokenCompletedCB() 1431 napi_value errJs = nullptr; in GetAccountInfoCompleteWork() local [all …]
|
/base/account/os_account/interfaces/kits/napi/account_iam/include/ |
D | napi_account_iam_common.h | 230 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 | 387 napi_value errJs = nullptr; in GenerateBusinessError() local 388 NAPI_CALL(env, napi_create_error(env, nullptr, errMsgJs, &errJs)); in GenerateBusinessError() 389 NAPI_CALL(env, napi_set_named_property(env, errJs, "code", errCodeJs)); in GenerateBusinessError() 390 NAPI_CALL(env, napi_set_named_property(env, errJs, "message", errMsgJs)); in GenerateBusinessError() 391 return errJs; in GenerateBusinessError()
|