/foundation/filemanagement/file_api/utils/filemgmt_libn/src/ |
H A D | n_error.cpp | 31 napi_value businessError = nullptr; in GenerateBusinessError() local 37 status = napi_create_error(env, nullptr, msg, &businessError); in GenerateBusinessError() 42 status = napi_set_named_property(env, businessError, FILEIO_TAG_ERR_CODE.c_str(), code); in GenerateBusinessError() 47 return businessError; in GenerateBusinessError() 131 napi_value businessError = GenerateBusinessError(env, code, msg); in GetNapiErrAddData() local 132 napi_status status = napi_set_named_property(env, businessError, FILEIO_TAG_ERR_DATA.c_str(), data); in GetNapiErrAddData() 137 return businessError; in GetNapiErrAddData() 183 napi_value businessError = GenerateBusinessError(env, code, msg); in ThrowErrAddData() local 184 napi_status status = napi_set_named_property(env, businessError, FILEIO_TAG_ERR_DATA.c_str(), data); in ThrowErrAddData() 189 status = napi_throw(env, businessError); in ThrowErrAddData() [all...] |
/foundation/multimodalinput/input/util/napi/include/ |
H A D | util_napi_error.h | 56 napi_value businessError = nullptr; \
61 napi_create_error(env, nullptr, errorMsg, &businessError); \
62 napi_set_named_property(env, businessError, ERR_CODE.c_str(), errorCode); \
63 napi_throw(env, businessError); \
|
/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_errcode.cpp | 109 napi_value businessError = nullptr; in GetCallbackErrorValue() local 114 NAPI_CALL(env, napi_create_object(env, &businessError)); in GetCallbackErrorValue() 115 NAPI_CALL(env, napi_set_named_property(env, businessError, "code", eCode)); in GetCallbackErrorValue() 116 NAPI_CALL(env, napi_set_named_property(env, businessError, "message", eMsg)); in GetCallbackErrorValue() 117 return businessError; in GetCallbackErrorValue() 164 napi_value businessError = nullptr; in HandlePromiseErrCode() local 170 napi_create_object(env, &businessError); in HandlePromiseErrCode() 171 napi_set_named_property(env, businessError, "code", eCode); in HandlePromiseErrCode() 172 napi_set_named_property(env, businessError, "message", eMsg); in HandlePromiseErrCode() 173 napi_set_named_property(env, businessError, "dat in HandlePromiseErrCode() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/ |
H A D | bundle_manager_sync.cpp | 174 napi_value businessError = BusinessError::CreateCommonError( in SetApplicationEnabledSync() local 176 napi_throw(env, businessError); in SetApplicationEnabledSync() 215 napi_value businessError = BusinessError::CreateCommonError( in SetAbilityEnabledSync() local 217 napi_throw(env, businessError); in SetAbilityEnabledSync() 251 napi_value businessError = BusinessError::CreateCommonError(env, ret, IS_APPLICATION_ENABLED_SYNC); in IsApplicationEnabledSync() local 252 napi_throw(env, businessError); in IsApplicationEnabledSync() 286 napi_value businessError = BusinessError::CreateCommonError(env, ret, IS_ABILITY_ENABLED_SYNC); in IsAbilityEnabledSync() local 287 napi_throw(env, businessError); in IsAbilityEnabledSync() 485 napi_value businessError = BusinessError::CreateCommonError( in QueryExtensionInfosSync() local 487 napi_throw(env, businessError); in QueryExtensionInfosSync() 522 napi_value businessError = BusinessError::CreateCommonError( GetPermissionDefSync() local 586 napi_value businessError = BusinessError::CreateCommonError( GetAbilityLabelSync() local 662 napi_value businessError = BusinessError::CreateCommonError( GetLaunchWantForBundleSync() local 705 napi_value businessError = BusinessError::CreateCommonError( GetBundleArchiveInfoSync() local 744 napi_value businessError = BusinessError::CreateCommonError( GetBundleNameByUidSync() local 770 napi_value businessError = BusinessError::CreateCommonError(env, ERROR_MODULE_NOT_EXIST); ParamsProcessGetProfileByAbilitySync() local 780 napi_value businessError = BusinessError::CreateCommonError(env, ERROR_ABILITY_NOT_EXIST); ParamsProcessGetProfileByAbilitySync() local 834 napi_value businessError = BusinessError::CreateCommonError(env, ret, GET_PROFILE_BY_ABILITY_SYNC); GetProfileByAbilitySync() local 842 napi_value businessError = BusinessError::CreateCommonError(env, ret, GET_PROFILE_BY_ABILITY_SYNC); GetProfileByAbilitySync() local 850 napi_value businessError = BusinessError::CreateCommonError( GetProfileByAbilitySync() local 904 napi_value businessError = BusinessError::CreateCommonError(env, ret, GET_PROFILE_BY_EXTENSION_ABILITY_SYNC); GetProfileByExAbilitySync() local 912 napi_value businessError = BusinessError::CreateCommonError(env, ret, GET_PROFILE_BY_EXTENSION_ABILITY_SYNC); GetProfileByExAbilitySync() local 920 napi_value businessError = BusinessError::CreateCommonError( GetProfileByExAbilitySync() local 963 napi_value businessError = BusinessError::CreateCommonError( GetAppProvisionInfoSync() local [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/ |
H A D | napi_async_call.cpp | 71 void AsyncCall::SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<Error> error, int apiversion)
in SetBusinessError() argument 76 napi_create_object(env, businessError);
in SetBusinessError() 79 napi_set_named_property(env, *businessError, "message", msg);
in SetBusinessError() 86 napi_set_named_property(env, *businessError, "code", code);
in SetBusinessError() 87 napi_set_named_property(env, *businessError, "message", msg);
in SetBusinessError() 147 napi_value businessError = nullptr;
in OnComplete() local 148 SetBusinessError(env, &businessError, context->error, context->apiversion);
in OnComplete() 149 result[ARG_ERROR] = businessError;
in OnComplete()
|
/foundation/communication/nfc/frameworks/js/napi/controller/ |
H A D | nfc_napi_ctrl_utils.cpp | 65 napi_value businessError = nullptr; in GenerateBusinessError() local 66 napi_create_error(env, nullptr, message, &businessError); in GenerateBusinessError() 67 napi_set_named_property(env, businessError, KEY_CODE.c_str(), code); in GenerateBusinessError() 68 return businessError; in GenerateBusinessError()
|
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/common/ |
H A D | napi_queue.cpp | 122 void NapiQueue::SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<Error> error) in SetBusinessError() argument 124 napi_create_object(env, businessError); in SetBusinessError() 130 napi_set_named_property(env, *businessError, "code", code); in SetBusinessError() 131 napi_set_named_property(env, *businessError, "message", msg); in SetBusinessError() 145 napi_value businessError = nullptr; in GenerateOutput() local 146 SetBusinessError(ctxt->env, &businessError, ctxt->error); in GenerateOutput() 147 result[RESULT_ERROR] = businessError; in GenerateOutput()
|
/foundation/distributeddatamgr/data_share/frameworks/js/napi/dataShare/src/ |
H A D | async_call.cpp | 103 void SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<Error> error) in SetBusinessError() argument 105 napi_create_object(env, businessError); in SetBusinessError() 111 napi_set_named_property(env, *businessError, "code", code); in SetBusinessError() 112 napi_set_named_property(env, *businessError, "message", msg); in SetBusinessError() 130 napi_value businessError = nullptr; in OnComplete() local 131 SetBusinessError(env, &businessError, context->ctx->error); in OnComplete() 132 result[ARG_ERROR] = businessError; in OnComplete()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/ |
H A D | uni_error.cpp | 31 napi_value businessError = nullptr; in GenerateBusinessError() local 36 napi_create_error(env, nullptr, msg, &businessError); in GenerateBusinessError() 37 napi_set_named_property(env, businessError, FILEIO_TAG_ERR_CODE.c_str(), code); in GenerateBusinessError() 38 napi_set_named_property(env, businessError, FILEIO_TAG_ERR_MSG.c_str(), msg); in GenerateBusinessError() 39 return businessError; in GenerateBusinessError()
|
/foundation/multimedia/player_framework/frameworks/native/system_sound_manager/ |
H A D | system_sound_manager_impl.cpp | 507 DataShare::DatashareBusinessError businessError; in SetRingtoneUri() local 511 auto resultSetByUri = dataShareHelper->Query(RINGTONEURI, queryPredicatesByUri, COLUMNS, &businessError); in SetRingtoneUri() 521 auto resultSet = dataShareHelper->Query(RINGTONEURI, queryPredicates, COLUMNS, &businessError); in SetRingtoneUri() 545 DataShare::DatashareBusinessError businessError; in GetRingtoneUriByType() local 550 auto resultSet = dataShareHelper->Query(RINGTONEURI, queryPredicates, COLUMNS, &businessError); in GetRingtoneUriByType() 595 DataShare::DatashareBusinessError businessError; in GetRingtoneTitle() local 598 auto resultSetByUri = dataShareHelper->Query(RINGTONEURI, queryPredicatesByUri, COLUMNS, &businessError); in GetRingtoneTitle() 778 DataShare::DatashareBusinessError businessError; in SetSystemToneUri() local 782 auto resultSetByUri = dataShareHelper->Query(RINGTONEURI, queryPredicatesByUri, COLUMNS, &businessError); in SetSystemToneUri() 793 auto resultSet = dataShareHelper->Query(RINGTONEURI, queryPredicates, COLUMNS, &businessError); in SetSystemToneUri() 822 DataShare::DatashareBusinessError businessError; GetShotToneUriByType() local 844 DataShare::DatashareBusinessError businessError; GetPresetShotToneUriByType() local 866 DataShare::DatashareBusinessError businessError; GetNotificationToneUriByType() local 888 DataShare::DatashareBusinessError businessError; GetPresetNotificationToneUri() local 952 DataShare::DatashareBusinessError businessError; GetDefaultRingtoneAttrs() local 986 DataShare::DatashareBusinessError businessError; GetRingtoneAttrList() local 1023 DataShare::DatashareBusinessError businessError; GetDefaultSystemToneAttrs() local 1079 DataShare::DatashareBusinessError businessError; GetSystemToneAttrList() local 1109 DataShare::DatashareBusinessError businessError; SetAlarmToneUri() local 1162 DataShare::DatashareBusinessError businessError; GetAlarmToneUri() local 1190 DataShare::DatashareBusinessError businessError; GetDefaultAlarmToneAttrs() local 1225 DataShare::DatashareBusinessError businessError; GetAlarmToneAttrList() local 1255 DataShare::DatashareBusinessError businessError; OpenAlarmTone() local 1434 DataShare::DatashareBusinessError businessError; RemoveCustomizedTone() local 1574 DataShare::DatashareBusinessError businessError; GetSimcardSettingAssetByToneHapticsType() local 1610 DataShare::DatashareBusinessError businessError; GetDefaultNonSyncedHapticsUri() local 1755 DataShare::DatashareBusinessError businessError; SetToneHapticsSettings() local 1796 DataShare::DatashareBusinessError businessError; GetToneHapticsList() local 1846 DataShare::DatashareBusinessError businessError; IsPresetRingtone() local 1909 DataShare::DatashareBusinessError businessError; GetHapticsAttrsSyncedWithTone() local 1945 DataShare::DatashareBusinessError businessError; OpenToneHaptics() local 1996 DataShare::DatashareBusinessError businessError; GetHapticsUriByStyle() local [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/app_control/ |
H A D | js_app_control.cpp | 199 napi_value businessError = BusinessError::CreateCommonError( in SetDisposedStatusSync() local 201 napi_throw(env, businessError); in SetDisposedStatusSync() 222 napi_value businessError = BusinessError::CreateCommonError( in SetDisposedStatusSync() local 224 napi_throw(env, businessError); in SetDisposedStatusSync() 312 napi_value businessError = BusinessError::CreateCommonError( in InnerDeleteDisposedStatusSync() local 314 napi_throw(env, businessError); in InnerDeleteDisposedStatusSync() 334 napi_value businessError = BusinessError::CreateCommonError( in InnerDeleteDisposedStatusSync() local 336 napi_throw(env, businessError); in InnerDeleteDisposedStatusSync() 470 napi_value businessError = BusinessError::CreateCommonError( in GetDisposedStatusSync() local 472 napi_throw(env, businessError); in GetDisposedStatusSync() 488 napi_value businessError = BusinessError::CreateCommonError( GetDisposedStatusSync() local 617 napi_value businessError = BusinessError::CreateCommonError( InnerGetDisposedRule() local 640 napi_value businessError = BusinessError::CreateCommonError( InnerGetDisposedRule() local 702 napi_value businessError = BusinessError::CreateCommonError( InnerSetDisposedRule() local 727 napi_value businessError = BusinessError::CreateCommonError( SetDisposedRule() local [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_error.cpp | 94 napi_value businessError = nullptr; in GenerateBusinessError() local 101 napi_create_error(env, nullptr, message, &businessError); in GenerateBusinessError() 102 napi_set_named_property(env, businessError, "code", code); in GenerateBusinessError() 103 return businessError; in GenerateBusinessError()
|
/foundation/distributeddatamgr/data_share/frameworks/native/provider/include/ |
H A D | js_datashare_ext_ability.h | 171 std::vector<std::string> &columns, DatashareBusinessError &businessError) override; 316 void GetBusinessError(DatashareBusinessError &businessError) in GetBusinessError() argument 318 businessError = businessError_; in GetBusinessError() 321 void SetBusinessError(DatashareBusinessError &businessError) in SetBusinessError() argument 323 businessError_ = businessError; in SetBusinessError() 347 static void UnWrapBusinessError(napi_env env, napi_value info, DatashareBusinessError &businessError);
|
/foundation/multimedia/ringtone_library/test/unittest/ringtone_test/src/ |
H A D | ringtone_unittest.cpp | 554 DatashareBusinessError businessError; in HWTEST_F() local 557 auto resultSet = g_dataShareHelper->Query(uri, queryPredicates, columns, &businessError); in HWTEST_F() 558 errCode = businessError.GetCode(); in HWTEST_F() 647 DatashareBusinessError businessError; in HWTEST_F() local 650 auto resultSet = g_dataShareHelper->Query(uri, queryPredicates, columns, &businessError); in HWTEST_F() 651 errCode = businessError.GetCode(); in HWTEST_F() 684 DatashareBusinessError businessError; in HWTEST_F() local 687 auto resultSet = g_dataShareHelper->Query(uri, queryPredicates, columns, &businessError); in HWTEST_F() 688 errCode = businessError.GetCode(); in HWTEST_F() 732 DatashareBusinessError businessError; in HWTEST_F() local 781 DatashareBusinessError businessError; HWTEST_F() local 819 DatashareBusinessError businessError; HWTEST_F() local 852 DatashareBusinessError businessError; HWTEST_F() local 875 DatashareBusinessError businessError; HWTEST_F() local 894 DatashareBusinessError businessError; HWTEST_F() local 914 DatashareBusinessError businessError; HWTEST_F() local 934 DatashareBusinessError businessError; HWTEST_F() local 962 DatashareBusinessError businessError; HWTEST_F() local 1070 DatashareBusinessError businessError; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
H A D | napi_business_error.cpp | 32 napi_value businessError = nullptr; in GenerateBusinessError() local 37 napi_create_error(env, nullptr, msg, &businessError); in GenerateBusinessError() 38 napi_set_named_property(env, businessError, ZLIB_TAG_ERR_CODE.c_str(), code); in GenerateBusinessError() 39 napi_set_named_property(env, businessError, ZLIB_TAG_ERR_MSG.c_str(), msg); in GenerateBusinessError() 40 return businessError; in GenerateBusinessError()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/ |
H A D | business_error.h | 51 auto businessError = BusinessError::CreateError(env, 401, errMessage); \ 52 napi_throw(env, businessError); \
|
/foundation/multimedia/media_library/frameworks/native/c_api/ |
H A D | media_userfile_client.cpp | 83 DatashareBusinessError businessError; in Query() local 84 resultSet = sDataShareHelper_->Query(uri, predicates, columns, &businessError); in Query() 85 errCode = businessError.GetCode(); in Query()
|
/foundation/multimedia/ringtone_library/test/unittest/ringtone_data_extension_test/src/ |
H A D | ringtone_datashare_extension_test.cpp | 156 AbilityRuntime::DatashareBusinessError businessError; in HWTEST_F() local 157 auto ret = mediaDataShare->Query(uri, predicates, columns, businessError); in HWTEST_F() 161 ret = mediaDataShare->Query(uriError, predicates, columns, businessError); in HWTEST_F() 175 AbilityRuntime::DatashareBusinessError businessError; in HWTEST_F() local 176 auto ret = mediaDataShare->Query(uri, predicates, columns, businessError); in HWTEST_F() 180 ret = mediaDataShare->Query(uriError, predicates, columns, businessError); in HWTEST_F()
|
/foundation/multimodalinput/input/frameworks/napi/short_key/src/ |
H A D | js_short_key_manager.cpp | 73 napi_value businessError = nullptr; in GetResult() local 77 CHKRF(napi_create_error(env, nullptr, errMsg, &businessError), CREATE_ERROR); in GetResult() 78 CHKRF(napi_set_named_property(env, businessError, ERR_CODE.c_str(), errCode), SET_NAMED_PROPERTY); in GetResult() 79 results[0] = businessError; in GetResult()
|
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/service/src/ |
H A D | general_controller_service_impl.cpp | 137 const DataSharePredicates &predicates, std::vector<std::string> &columns, DatashareBusinessError &businessError) in Query() 150 auto resultSet = proxy->Query(uri, Uri(extUri_), predicates, columns, businessError); in Query() 152 while (resultSet == nullptr && businessError.GetCode() == E_RESULTSET_BUSY && retryCount++ < MAX_RETRY_COUNT) { in Query() 156 resultSet = proxy->Query(uri, Uri(extUri_), predicates, columns, businessError); in Query() 136 Query(const Uri &uri, const DataSharePredicates &predicates, std::vector<std::string> &columns, DatashareBusinessError &businessError) Query() argument
|
/foundation/multimedia/ringtone_library/test/unittest/ringtone_scanner/src/ |
H A D | ringtone_read_test.cpp | 160 DatashareBusinessError businessError; in main() local 164 auto resultSet = g_dataShareHelper->Query(ringtoneUri, queryPredicates, columns, &businessError); in main() 165 errCode = businessError.GetCode(); in main()
|
H A D | ringtone_test.cpp | 140 DatashareBusinessError businessError; in RingtoneQuery() local 144 auto resultSet = g_dataShareHelper->Query(ringtoneUri, queryPredicates, columns, &businessError); in RingtoneQuery() 145 errCode = businessError.GetCode(); in RingtoneQuery()
|
/foundation/arkui/ace_engine/advanced_ui_component/navpushpathhelper/src/ |
H A D | hsp_silentinstall_napi.cpp | 253 napi_value businessError = nullptr;
in CreateResultMessage() local 254 status = napi_create_object(callbackData->env, &businessError);
in CreateResultMessage() 260 status = napi_set_named_property(callbackData->env, businessError, "code", code);
in CreateResultMessage() 266 status = napi_set_named_property(callbackData->env, businessError, "message", message);
in CreateResultMessage() 271 return businessError;
in CreateResultMessage()
|
/foundation/arkui/advanced_ui_component/navpushpathhelper/src/ |
H A D | hsp_silentinstall_napi.cpp | 253 napi_value businessError = nullptr; in CreateResultMessage() local 254 status = napi_create_object(callbackData->env, &businessError); in CreateResultMessage() 260 status = napi_set_named_property(callbackData->env, businessError, "code", code); in CreateResultMessage() 266 status = napi_set_named_property(callbackData->env, businessError, "message", message); in CreateResultMessage() 271 return businessError; in CreateResultMessage()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/ |
H A D | launcher_bundle_manager.cpp | 166 napi_value businessError = BusinessError::CreateCommonError( in GetLauncherAbilityInfoSync() local 169 napi_throw(env, businessError); in GetLauncherAbilityInfoSync() 178 napi_value businessError = BusinessError::CreateCommonError( in GetLauncherAbilityInfoSync() local 180 napi_throw(env, businessError); in GetLauncherAbilityInfoSync() 379 napi_value businessError = BusinessError::CreateCommonError( in GetShortcutInfoSync() local 382 napi_throw(env, businessError); in GetShortcutInfoSync() 389 napi_value businessError = BusinessError::CreateCommonError( in GetShortcutInfoSync() local 391 napi_throw(env, businessError); in GetShortcutInfoSync()
|