Home
last modified time | relevance | path

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

/base/account/os_account/interfaces/kits/napi/common/include/
Dnapi_account_error.h27 napi_value GenerateBusinessSuccess(napi_env env, bool throwErr);
30 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode, bool throwErr);
31 void AccountNapiThrow(napi_env env, int32_t jsErrCode, const std::string &jsErrMsg, bool throwErr =…
32 void AccountNapiThrow(napi_env env, int32_t nativeErrCode, bool throwErr = true);
33 void AccountIAMNapiThrow(napi_env env, int32_t jsErrCode, bool throwErr);
Dnapi_account_common.h37 …CommonAsyncContext(napi_env napiEnv, bool throwAble = false) : env(napiEnv), throwErr(throwAble) {… in env()
46 bool throwErr = false; member
/base/account/os_account/interfaces/kits/napi/common/src/
Dnapi_account_error.cpp108 napi_value GenerateBusinessSuccess(napi_env env, bool throwErr) in GenerateBusinessSuccess() argument
110 if (throwErr) { in GenerateBusinessSuccess()
118 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode, bool throwErr) in GenerateBusinessError() argument
120 if (throwErr) { in GenerateBusinessError()
138 void AccountNapiThrow(napi_env env, int32_t nativeErrCode, bool throwErr) in AccountNapiThrow() argument
140 if (throwErr) { in AccountNapiThrow()
145 void AccountNapiThrow(napi_env env, int32_t jsErrCode, const std::string &jsErrMsg, bool throwErr) in AccountNapiThrow() argument
147 if (throwErr) { in AccountNapiThrow()
152 void AccountIAMNapiThrow(napi_env env, int32_t jsErrCode, bool throwErr) in AccountIAMNapiThrow() argument
154 if (throwErr) { in AccountIAMNapiThrow()
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account_common.cpp86 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseOneParaContext()
93 …llbackAndId(napi_env env, napi_callback_info cbInfo, napi_ref &callbackRef, int &id, bool throwErr) in ParseCallbackAndId() argument
103 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId()
110 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId()
118 …rseCallbackAndId(env, cbInfo, asyncContext->callbackRef, asyncContext->id, asyncContext->throwErr); in ParseParaQueryOAByIdCB()
138 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in QueryOAByIdCallbackCompletedCB()
271 …rseCallbackAndId(env, cbInfo, asyncContext->callbackRef, asyncContext->id, asyncContext->throwErr); in ParseParaRemoveOACB()
292 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in RemoveOACallbackCompletedCB()
309 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseParaSetOAName()
317 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseParaSetOAName()
[all …]
Dnapi_os_account.cpp186 queryOAByIdCB->throwErr = true; in QueryOsAccountById()
219 removeOACB->throwErr = true; in RemoveOsAccount()
247 setOANameCB->throwErr = true; in SetOsAccountName()
280 setOAConsCB->throwErr = true; in SetOsAccountConstraints()
313 activeOACB->throwErr = true; in ActivateOsAccount()
346 createOACB->throwErr = true; in CreateOsAccount()
374 createOAForDomainCB->throwErr = true; in CreateOsAccountForDomain()
408 napi_value GetCreatedOsAccountsCountInner(napi_env env, napi_callback_info cbInfo, bool throwErr) in GetCreatedOsAccountsCountInner() argument
412 getOACount->throwErr = throwErr; in GetCreatedOsAccountsCountInner()
414 if (!ParseParaGetOACount(env, cbInfo, getOACount.get()) && throwErr) { in GetCreatedOsAccountsCountInner()
[all …]
/base/account/os_account/interfaces/kits/napi/osaccount/include/
Dnapi_os_account.h234 napi_value GetCreatedOsAccountsCountInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
240 …i_value GetDistributedVirtualDeviceIdInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
246 napi_value GetOsAccountAllConstraintsInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
252 …_value GetOsAccountLocalIdFromProcessInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
260 napi_value QueryActivatedOsAccountIdsInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
268 napi_value QueryCurrentOsAccountInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
276 napi_value GetOsAccountLocalIdFromUidInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
286 …i_value GetOsAccountLocalIdFromDomainInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
306 napi_value GetOsAccountTypeFromProcessInner(napi_env env, napi_callback_info cbInfo, bool throwErr);
312 napi_value InnerIsMultiOsAccountEnable(napi_env env, napi_callback_info cbInfo, bool throwErr);
[all …]
/base/account/os_account/interfaces/kits/napi/distributedaccount/include/
Dnapi_distributed_account.h31 bool throwErr = false; member
53 static napi_value QueryOhosAccountInfo(napi_env env, napi_callback_info cbInfo, bool throwErr);
57 static napi_value UpdateOhosAccountInfo(napi_env env, napi_callback_info cbInfo, bool throwErr);
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/
Dnapi_distributed_account.cpp118 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo()
124 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo()
130 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo()
136 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo()
153 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo()
252 if (asyncContext->throwErr) { in ProcessSetNamedProperty()
280 if (asyncContext->throwErr) { in ProcessSetNamedProperty()
353 if (!asyncContext->throwErr) { in QueryOhosAccountInfoExecuteCB()
379 …apiDistributedAccount::QueryOhosAccountInfo(napi_env env, napi_callback_info cbInfo, bool throwErr) in QueryOhosAccountInfo() argument
387 asyncContext->throwErr = throwErr; in QueryOhosAccountInfo()
[all …]
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account.cpp325 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in RemoveAccountInternal()
461 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in CheckDataSyncEnabledInternal()
499 if ((!asyncContext->throwErr) && (!CheckSpecialCharacters(asyncContext->name))) { in SetCredentialInternal()
508 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in SetCredentialInternal()
571 if ((!asyncContext->throwErr) && (!CheckSpecialCharacters(asyncContext->name))) { in SetDataSyncEnabledInternal()
580 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in SetDataSyncEnabledInternal()
617 if ((!asyncContext->throwErr) && (!CheckSpecialCharacters(asyncContext->name))) { in SetCustomDataInternal()
626 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in SetCustomDataInternal()
662 if (asyncContext->throwErr) { in GetAllAccessibleAccountsInternal()
674 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in GetAllAccessibleAccountsInternal()
[all …]
/base/account/os_account/interfaces/kits/napi/account_iam/include/
Dnapi_account_iam_common.h102 bool throwErr = true; member
109 bool throwErr = true; member