Home
last modified time | relevance | path

Searched refs:NapiThrow (Results 1 – 25 of 27) sorted by relevance

12

/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_napi_sync_impl.cpp102 ResourceManagerNapiUtils::NapiThrow(env, ret); in GetRawFileListSync()
110 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_RES_PATH_INVALID); in GetRawFileListSync()
126 ResourceManagerNapiUtils::NapiThrow(env, ret); in GetRawFileContentSync()
134 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFileContentSync()
150 ResourceManagerNapiUtils::NapiThrow(env, ret); in GetRawFdSync()
158 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFdSync()
173 ResourceManagerNapiUtils::NapiThrow(env, ret); in CloseRawFdSync()
180 ResourceManagerNapiUtils::NapiThrow(env, state); in CloseRawFdSync()
282 ResourceManagerNapiUtils::NapiThrow(env, state); in ProcessStrResource()
297 ResourceManagerNapiUtils::NapiThrow(env, state); in GetStringSync()
[all …]
Dresource_manager_napi_async_impl.cpp186 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in ProcessNameParamV9()
219 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in ProcessIdParamV9()
251 ResourceManagerNapiUtils::NapiThrow(env, retCode); in ProcessResourceParamV9()
259 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in ProcessResourceParamV9()
297 ResourceManagerNapiUtils::NapiThrow(env, retCode); in ProcessOnlyIdParam()
333 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in ProcessIdNameParam()
397 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in GetStringValue()
423 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in GetStringByName()
468 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in GetStringArrayValue()
476 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_INVALID_INPUT_PARAMETER); in GetStringArrayByName()
[all …]
Dresource_manager_napi_utils.cpp147 void ResourceManagerNapiUtils::NapiThrow(napi_env env, int32_t errCode) in NapiThrow() function in OHOS::Global::Resource::ResourceManagerNapiUtils
Dresource_manager_addon.cpp74 ResourceManagerNapiUtils::NapiThrow(env, ERROR_CODE_SYSTEM_RES_MANAGER_GET_FAILED); in GetSystemResMgr()
/base/global/i18n/interfaces/js/kits/src/
Dvariable_convertor.cpp60 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, true); in GetBoolOptionValue()
102 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in GetStringArrayFromJsParam()
109 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, true); in GetStringArrayFromJsParam()
121 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, true); in GetStringArrayFromJsParam()
Di18n_normalizer_addon.cpp92 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in I18nNormalizerConstructor()
99 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in I18nNormalizerConstructor()
109 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in I18nNormalizerConstructor()
140 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in Normalize()
147 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in Normalize()
Derror_util.cpp30 void ErrorUtil::NapiThrow(napi_env env, int32_t errCode, bool throwError) in NapiThrow() function in OHOS::Global::I18n::ErrorUtil
Di18n_addon.cpp948 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, throwError); in GetSystemCountriesImpl()
957 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, throwError); in GetSystemCountriesImpl()
1043 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, throwError); in GetDisplayLanguageImpl()
1052 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, throwError); in GetDisplayLanguageImpl()
1060 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, throwError); in GetDisplayLanguageImpl()
1071 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, throwError); in GetDisplayLanguageImpl()
1106 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, throwError); in GetDisplayCountryImpl()
1115 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, throwError); in GetDisplayCountryImpl()
1123 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, throwError); in GetDisplayCountryImpl()
1133 ErrorUtil::NapiThrow(env, I18N_NOT_VALID, throwError); in GetDisplayCountryImpl()
[all …]
Dsystem_locale_manager_addon.cpp116 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in GetLanguageInfoArray()
146 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, true); in GetCountryInfoArray()
/base/global/i18n/interfaces/js/kits/include/
Derror_util.h36 static void NapiThrow(napi_env env, int32_t errCode, bool throwError);
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_display_badge.cpp30 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiDisplayBadge()
125 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiIsBadgeDisplayed()
243 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSetBadgeNumber()
250 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSetBadgeNumber()
Dnapi_distributed.cpp55 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiIsDistributedEnabled()
114 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiEnableDistributed()
185 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiEnableDistributedByBundle()
255 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiEnableDistributedSelf()
352 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiIsDistributedEnableByBundle()
441 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetDeviceRemindType()
498 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSetSyncNotificationEnabledWithoutApp()
570 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetSyncNotificationEnabledWithoutApp()
Dnapi_slot.cpp28 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiAddSlot()
105 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiAddSlots()
172 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSetSlotByBundle()
271 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetSlot()
327 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetSlotNumByBundle()
443 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetSlots()
543 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetSlotsByBundle()
599 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRemoveSlot()
667 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRemoveAllSlots()
733 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiEnableNotificationSlot()
[all …]
Dnapi_publish.cpp29 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiPublish()
104 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiShowNotification()
169 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiPublishAsBundle()
Dnapi_cancel.cpp28 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiCancel()
97 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiCancelAll()
163 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiCancelGroup()
233 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiCancelAsBundle()
Dnapi_disturb_mode.cpp28 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSetDoNotDisturbDate()
129 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetDoNotDisturbDate()
196 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSupportDoNotDisturbMode()
Dnapi_enable_notification.cpp49 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiEnableNotification()
128 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiIsNotificationEnabled()
198 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiIsNotificationEnabledSelf()
260 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRequestEnableNotification()
Dnapi_get_active.cpp76 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetAllActiveNotifications()
180 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetActiveNotifications()
262 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetActiveNotificationCount()
Dnapi_template.cpp28 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiIsSupportTemplate()
Dnapi_remove_group.cpp110 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRemoveGroupByBundle()
/base/notification/distributed_notification_service/frameworks/js/napi/src/subscribe/
Dnapi_remove.cpp70 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRemove()
99 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRemoveAll()
Dnapi_subscribe.cpp35 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSubscribe()
127 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiUnsubscribe()
/base/global/resource_management/interfaces/js/innerkits/core/include/
Dresource_manager_napi_utils.h59 static void NapiThrow(napi_env env, int32_t errCode);
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
Dnapi_common_event.cpp459 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in CreateSubscriber()
539 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in CreateSubscriberSync()
555 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in CreateSubscriberSync()
711 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in GetSubscribeInfo()
854 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in IsOrderedCommonEvent()
998 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in IsStickyCommonEvent()
1141 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in GetCode()
1292 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in SetCode()
1429 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in GetData()
1585 NapiThrow(env, ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID); in SetData()
[all …]
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/include/
Dnapi_common_event.h454 void NapiThrow(napi_env env, int32_t errCode);

12