Home
last modified time | relevance | path

Searched refs:GenerateBusinessError (Results 1 – 25 of 53) sorted by relevance

123

/base/account/os_account/interfaces/kits/napi/common/src/
Dnapi_account_error.cpp73 napi_value GenerateBusinessError(napi_env env, int32_t jsErrCode, const std::string &jsErrMsg) in GenerateBusinessError() function
118 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode, bool throwErr) in GenerateBusinessError() function
121 return GenerateBusinessError(env, nativeErrCode); in GenerateBusinessError()
126 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode) in GenerateBusinessError() function
135 return GenerateBusinessError(env, jsErrCode, jsErrMsg); in GenerateBusinessError()
141 napi_throw(env, GenerateBusinessError(env, nativeErrCode)); in AccountNapiThrow()
148 napi_throw(env, GenerateBusinessError(env, jsErrCode, jsErrMsg)); in AccountNapiThrow()
155 napi_throw(env, GenerateBusinessError(env, jsErrCode, ConvertToJsErrMsg(jsErrCode))); in AccountIAMNapiThrow()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_pri_key.cpp72 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napiPriKey obj!")… in JsGetEncoded()
79 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get priKey obj!")); in JsGetEncoded()
87 napi_throw(env, GenerateBusinessError(env, res, "c getEncoded fail.")); in JsGetEncoded()
104 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napiPriKey obj!")… in JsClearMem()
111 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get priKey obj!")); in JsClearMem()
125 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecBigInteger failed.")); in GetAsyKeySpecBigInt()
140 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecInt failed.")); in GetAsyKeySpecNumber()
155 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecString failed.")); in GetAsyKeySpecString()
175 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "JsGetAsyKeySpec fail, wrong argume… in JsGetAsyKeySpec()
182 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "JsGetAsyKeySpec failed!")); in JsGetAsyKeySpec()
[all …]
Dnapi_pub_key.cpp72 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napiPubKey obj!")… in JsGetEncoded()
79 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get pubKey obj!")); in JsGetEncoded()
87 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "c getEncoded fail.")); in JsGetEncoded()
102 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecBigInteger failed.")); in GetAsyKeySpecBigInt()
117 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecInt failed.")); in GetAsyKeySpecNumber()
132 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecString failed.")); in GetAsyKeySpecString()
152 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "JsGetAsyKeySpec fail, wrong argume… in JsGetAsyKeySpec()
158 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "JsGetAsyKeySpec failed!")); in JsGetAsyKeySpec()
165 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napiPubKey obj!")… in JsGetAsyKeySpec()
171 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get pubKey obj!")); in JsGetAsyKeySpec()
[all …]
Dnapi_key.cpp47 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napi key obj.")); in JsGetAlgorithm()
53 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get key obj!")); in JsGetAlgorithm()
72 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napi key obj.")); in JsGetFormat()
78 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get key obj!")); in JsGetFormat()
97 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napi key obj.")); in JsGetEncoded()
103 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get key obj!")); in JsGetEncoded()
111 napi_throw(env, GenerateBusinessError(env, res, "getEncoded failed.")); in JsGetEncoded()
Dnapi_rand.cpp85 businessError = GenerateBusinessError(env, context->errCode, context->errMsg); in ReturnCallbackResult()
104 GenerateBusinessError(env, context->errCode, context->errMsg)); in ReturnPromiseResult()
224 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsGenerateRandom()
230 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsGenerateRandom()
249 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "invalid params count")); in JsGenerateRandomSync()
256 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "get numBytes failed!")); in JsGenerateRandomSync()
262 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap NapiRand obj!")); in JsGenerateRandomSync()
268 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get rand obj!")); in JsGenerateRandomSync()
276 napi_throw(env, GenerateBusinessError(env, res, "generateRandom failed!")); in JsGenerateRandomSync()
296 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "invalid params count")); in JsSetSeed()
[all …]
Dnapi_sign.cpp269 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnInitCallbackResult()
288 … napi_reject_deferred(env, ctx->deferred, GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnInitPromiseResult()
296 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnUpdateCallbackResult()
315 … napi_reject_deferred(env, ctx->deferred, GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnUpdatePromiseResult()
323 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnDoFinalCallbackResult()
342 … napi_reject_deferred(env, ctx->deferred, GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnDoFinalPromiseResult()
517 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsInit()
523 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsInit()
536 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsUpdate()
542 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsUpdate()
[all …]
Dnapi_asy_key_spec_generator.cpp100 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnAsyKeyCallbackResult()
120 GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnAsyKeyPromiseResult()
143 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi key pair failed!")); in GenKeyPairAsyncWorkReturn()
192 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi pub key failed!")); in PubKeyAsyncWorkReturn()
242 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi pri key failed!")); in PriKeyAsyncWorkReturn()
370 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGenerateKeyPair()
376 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail!")); in JsGenerateKeyPair()
389 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGeneratePubKey()
395 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail!")); in JsGeneratePubKey()
408 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGeneratePriKey()
[all …]
Dnapi_verify.cpp291 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnInitCallbackResult()
311 GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnInitPromiseResult()
319 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnUpdateCallbackResult()
339 GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnUpdatePromiseResult()
347 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnDoFinalCallbackResult()
367 GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnDoFinalPromiseResult()
543 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsInit()
549 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsInit()
562 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsUpdate()
568 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsUpdate()
[all …]
Dnapi_cipher.cpp273 businessError = GenerateBusinessError(env, context->errCode, context->errMsg); in ReturnCallbackResult()
292 GenerateBusinessError(env, context->errCode, context->errMsg)); in ReturnPromiseResult()
479 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsCipherInit()
485 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context for init fail!")); in JsCipherInit()
498 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsCipherUpdate()
504 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context for update fail!")); in JsCipherUpdate()
517 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsCipherDoFinal()
523 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context for final fail!")); in JsCipherDoFinal()
573 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "The input args num is invalid.")); in CreateCipher()
587 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get algoName.")); in CreateCipher()
[all …]
Dnapi_asy_key_generator.cpp213 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnGenKeyPairCallbackResult()
233 GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnGenKeyPairPromiseResult()
241 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnConvertKeyCallbackResult()
261 GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnConvertKeyPromiseResult()
284 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi key pair failed!")); in GenKeyPairAsyncWorkReturn()
334 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi key pair failed!")); in ConvertKeyAsyncWorkReturn()
435 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc ctx fail.")); in JsGenerateKeyPair()
441 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsGenerateKeyPair()
454 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsConvertKey()
460 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsConvertKey()
[all …]
Dnapi_key_agreement.cpp126 businessError = GenerateBusinessError(env, ctx->errCode, ctx->errMsg); in ReturnCallbackResult()
146 GenerateBusinessError(env, ctx->errCode, ctx->errMsg)); in ReturnPromiseResult()
224 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsGenerateSecret()
230 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsGenerateSecret()
253 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "The input args num is invalid.")); in CreateJsKeyAgreement()
265 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "Get algName is invalid.")); in CreateJsKeyAgreement()
272 napi_throw(env, GenerateBusinessError(env, res, "create c keyAgreement fail.")); in CreateJsKeyAgreement()
279 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi key agreement failed.")); in CreateJsKeyAgreement()
296 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to wrap napiKeyAgreement ob… in CreateJsKeyAgreement()
Dnapi_md.cpp85 businessError = GenerateBusinessError(env, context->errCode, context->errMsg); in ReturnCallbackResult()
103 GenerateBusinessError(env, context->errCode, context->errMsg)); in ReturnPromiseResult()
299 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMdUpdate()
305 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMdUpdate()
318 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMdDoFinal()
324 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMdDoFinal()
342 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap NapiMd obj!")); in JsGetMdLength()
349 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get md obj!")); in JsGetMdLength()
377 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to wrap NapiMd obj!")); in NapiWrapMd()
393 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "The input args num is invalid.")); in CreateMd()
[all …]
Dnapi_sym_key_generator.cpp155 GenerateBusinessError(env, context->errCode, context->errMsg)); in ReturnPromiseResult()
163 businessError = GenerateBusinessError(env, context->errCode, context->errMsg); in ReturnCallbackResult()
199 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi sym key failed.")); in AsyncKeyReturn()
317 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "Create context failed!")); in JsGenerateSymKey()
323 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "Build context fail.")); in JsGenerateSymKey()
342 …napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc SymKeyGeneratorFwkCtx failed!")… in JsConvertKey()
348 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "BuildContextForConvertKey failed!"… in JsConvertKey()
378 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "The input args num is invalid.")); in CreateSymKeyGenerator()
390 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get algoName.")); in CreateSymKeyGenerator()
398 napi_throw(env, GenerateBusinessError(env, res, "create C generator fail.")); in CreateSymKeyGenerator()
[all …]
Dnapi_mac.cpp87 businessError = GenerateBusinessError(env, context->errCode, context->errMsg); in ReturnCallbackResult()
106 GenerateBusinessError(env, context->errCode, context->errMsg)); in ReturnPromiseResult()
388 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacInit()
394 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMacInit()
407 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacUpdate()
413 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMacUpdate()
426 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacDoFinal()
432 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMacDoFinal()
449 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napiMac obj!")); in JsGetMacLength()
456 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get mac obj!")); in JsGetMacLength()
[all …]
Dnapi_sym_key.cpp48 …napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napiSymKey obj!")… in JsClearMem()
/base/account/os_account/interfaces/kits/napi/common/include/
Dnapi_account_error.h28 napi_value GenerateBusinessError(napi_env env, int32_t jsErrCode, const std::string &jsErrMsg);
29 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode);
30 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode, bool throwErr);
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account.cpp199 napi_throw(env, GenerateBusinessError(env, ERR_JS_PARAMETER_ERROR, context->errMsg)); in CreateAccount()
218 GenerateBusinessError(env, context->errCode), NapiGetNull(env)); in CreateAccount()
230 napi_throw(env, GenerateBusinessError(env, ERR_JS_PARAMETER_ERROR, context->errMsg)); in CreateAccountImplicitly()
310 napi_throw(env, GenerateBusinessError(env, ERR_JS_PARAMETER_ERROR, asyncContext->errMsg)); in RemoveAccountInternal()
325 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in RemoveAccountInternal()
403 napi_throw(env, GenerateBusinessError(env, ERR_JS_PARAMETER_ERROR, context->errMsg)); in SetAppAccess()
418 GenerateBusinessError(env, context->errCode), NapiGetNull(env)); in SetAppAccess()
442 napi_throw(env, GenerateBusinessError(env, ERR_JS_PARAMETER_ERROR, asyncContext->errMsg)); in CheckDataSyncEnabledInternal()
461 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in CheckDataSyncEnabledInternal()
490 napi_throw(env, GenerateBusinessError(env, ERR_JS_PARAMETER_ERROR, context->errMsg)); in SetCredentialInternal()
[all …]
/base/useriam/face_auth/frameworks/js/napi/src/
Dface_auth_napi.cpp59 napi_value GenerateBusinessError(napi_env env, int32_t result) in GenerateBusinessError() function
122 napi_throw(env, GenerateBusinessError(env, RESULT_CODE_FAIL)); in SetSurfaceId()
131 napi_throw(env, GenerateBusinessError(env, RESULT_CODE_FAIL)); in SetSurfaceId()
143 napi_throw(env, GenerateBusinessError(env, RESULT_CODE_FAIL)); in SetSurfaceId()
149 napi_throw(env, GenerateBusinessError(env, result)); in SetSurfaceId()
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_atmanager.cpp72 …napi_value businessError = GenerateBusinessError(env, contextResult, GetErrorMessage(contextResult… in ReturnPromiseResult()
83 businessError = GenerateBusinessError(env, contextResult, GetErrorMessage(contextResult)); in ReturnCallbackResult()
378 NAPI_CALL_BASE(env, napi_throw(env, GenerateBusinessError(env, in ParseInputVerifyPermissionOrGetFlag()
387 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag()
395 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag()
592 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_INVALID, errMsg))); in VerifyAccessTokenSync()
597 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_INVALID, errMsg))); in VerifyAccessTokenSync()
626GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), false); in ParseInputGrantOrRevokePermission()
635 …env, napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), fal… in ParseInputGrantOrRevokePermission()
643 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputGrantOrRevokePermission()
[all …]
/base/security/access_token/interfaces/kits/common/include/
Dnapi_error.h44 napi_value GenerateBusinessError(napi_env env, int32_t errCode, const std::string& errMsg);
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account_common.cpp138 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in QueryOAByIdCallbackCompletedCB()
292 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in RemoveOACallbackCompletedCB()
348 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in SetOANameCallbackCompletedCB()
417 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in SetOAConsCallbackCompletedCB()
447 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in ActivateOACallbackCompletedCB()
587 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in CreateOACallbackCompletedCB()
608 errJs = GenerateBusinessError(asyncContext->env, asyncContext->errCode); in CreateOAForDomainCallbackCompletedWork()
640 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in GetOACountCallbackCompletedCB()
674 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in DbDeviceIdCallbackCompletedCB()
711 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in GetAllConsCallbackCompletedCB()
[all …]
/base/security/access_token/interfaces/kits/privacy/napi/src/
Dpermission_record_manager_napi.cpp87 …NAPI_CALL_RETURN_VOID(env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_ILLEGAL, errM… in ParamResolveErrorThrow()
94 napi_value businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnPromiseResult()
106 businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnCallbackResult()
131 …napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), fals… in ParseAddPermissionRecord()
180 …napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), fals… in ParseStartAndStopUsingPermission()
388 …napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), fals… in ParseGetPermissionUsedRecords()
674 …env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")),… in ParseInputToRegister()
715 …env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")),… in ParseInputToUnregister()
846 …NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_INVALID, err… in RegisterPermActiveChangeCallback()
854 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, jsCode, errMsg))); in RegisterPermActiveChangeCallback()
[all …]
/base/security/access_token/interfaces/kits/common/src/
Dnapi_error.cpp52 napi_value GenerateBusinessError(napi_env env, int32_t errCode, const std::string& errMsg) in GenerateBusinessError() function
/base/theme/screenlock_mgr/frameworks/js/napi/src/
Dasync_call.cpp137GenerateBusinessError(env, context->ctx->errorInfo_, &result[static_cast<uint32_t>(ARG_INFO::ARG_E… in OnComplete()
169 void AsyncCall::GenerateBusinessError(napi_env env, const ErrorInfo &errorInfo, napi_value *result) in GenerateBusinessError() function in OHOS::ScreenLock::AsyncCall
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
Dnapi_utils.h70 napi_value GenerateBusinessError(napi_env env, HcfResult errCode, const char *errMsg);

123