Home
last modified time | relevance | path

Searched refs:BusinessError (Results 1 - 25 of 30) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/
H A Dbundle_manager_sync.cpp65 "BusinessError 401: Parameter error.Parameter extensionAbilityType is empty.";
150 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in SetApplicationEnabledSync()
157 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in SetApplicationEnabledSync()
162 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, IS_ENABLE, TYPE_BOOLEAN); in SetApplicationEnabledSync()
168 BusinessError::ThrowError(env, ERROR_BUNDLE_SERVICE_EXCEPTION, ERR_MSG_BUNDLE_SERVICE_EXCEPTION); in SetApplicationEnabledSync()
174 napi_value businessError = BusinessError::CreateCommonError( in SetApplicationEnabledSync()
191 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in SetAbilityEnabledSync()
198 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, ABILITY_INFO, TYPE_OBJECT); in SetAbilityEnabledSync()
203 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, IS_ENABLE, TYPE_BOOLEAN); in SetAbilityEnabledSync()
209 BusinessError in SetAbilityEnabledSync()
[all...]
H A Dbundle_manager.cpp212 result[ARGS_POS_ZERO] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in GetBundleArchiveInfoComplete()
230 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetBundleArchiveInfo()
239 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, PARAM_TYPE_CHECK_ERROR); in GetBundleArchiveInfo()
252 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, errMsg); in GetBundleArchiveInfo()
386 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in GetBundleNameByUidComplete()
444 result[ARGS_POS_ZERO] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in GetAppCloneIdentityComplete()
466 result[ARGS_POS_ZERO] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in GetApplicationInfoComplete()
487 result[ARGS_POS_ZERO] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in GetApplicationInfosComplete()
527 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetBundleNameByUid()
543 BusinessError in GetBundleNameByUid()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/default_app/
H A Djs_default_app_unsupported.cpp31 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in IsDefaultApplication()
40 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in IsDefaultApplicationSync()
49 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetDefaultApplication()
58 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetDefaultApplicationSync()
67 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in SetDefaultApplication()
76 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in SetDefaultApplicationSync()
85 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in ResetDefaultApplication()
94 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in ResetDefaultApplicationSync()
H A Djs_default_app.cpp270 result[ARGS_POS_ZERO] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in IsDefaultApplicationComplete()
288 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in IsDefaultApplication()
297 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, PARAM_TYPE_CHECK_ERROR); in IsDefaultApplication()
308 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, errMsg); in IsDefaultApplication()
325 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in ParamsProcessIsDefaultApplicationSync()
332 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, TYPE_CHECK, TYPE_STRING); in ParamsProcessIsDefaultApplicationSync()
338 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, errMsg); in ParamsProcessIsDefaultApplicationSync()
358 napi_value error = BusinessError::CreateCommonError(env, ERROR_BUNDLE_SERVICE_EXCEPTION, in IsDefaultApplicationSync()
368 napi_value businessError = BusinessError::CreateCommonError( in IsDefaultApplicationSync()
418 result[ARGS_POS_ZERO] = BusinessError in GetDefaultApplicationComplete()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/
H A Dlauncher_bundle_manager_unsupported.cpp30 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetLauncherAbilityInfo()
39 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetLauncherAbilityInfoSync()
48 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetAllLauncherAbilityInfo()
57 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetShortcutInfo()
66 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetShortcutInfoSync()
75 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in StartShortcut()
H A Dlauncher_bundle_manager.cpp95 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, GET_LAUNCHER_ABILITY_INFO, in GetLauncherAbilityInfoComplete()
107 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetLauncherAbilityInfo()
118 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in GetLauncherAbilityInfo()
122 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, USER_ID, TYPE_NUMBER); in GetLauncherAbilityInfo()
135 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetLauncherAbilityInfo()
151 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetLauncherAbilityInfoSync()
157 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in GetLauncherAbilityInfoSync()
161 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, USER_ID, TYPE_NUMBER); in GetLauncherAbilityInfoSync()
166 napi_value businessError = BusinessError::CreateCommonError( in GetLauncherAbilityInfoSync()
178 napi_value businessError = BusinessError in GetLauncherAbilityInfoSync()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/overlay/
H A Djs_app_overlay_unsupported.cpp30 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in SetOverlayEnabled()
39 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in SetOverlayEnabledByBundleName()
48 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetOverlayModuleInfo()
57 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetTargetOverlayModuleInfos()
66 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetOverlayModuleInfoByBundleName()
75 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetTargetOverlayModuleInfosByBundleName()
H A Djs_app_overlay.cpp105 result[0] = BusinessError::CreateCommonError(env, overlayCallbackInfo->err, in SetOverlayEnabledComplete()
123 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in SetOverlayEnabled()
133 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, MODULE_NAME, TYPE_STRING); in SetOverlayEnabled()
138 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, IS_ENABLED, TYPE_BOOLEAN); in SetOverlayEnabled()
149 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, PARAM_TYPE_CHECK_ERROR); in SetOverlayEnabled()
174 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in SetOverlayEnabledByBundleName()
184 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in SetOverlayEnabledByBundleName()
191 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, MODULE_NAME, TYPE_STRING); in SetOverlayEnabledByBundleName()
197 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, IS_ENABLED, TYPE_BOOLEAN); in SetOverlayEnabledByBundleName()
208 BusinessError in SetOverlayEnabledByBundleName()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/app_control/
H A Djs_app_control.cpp125 result[0] = BusinessError::CreateCommonError( in SetDisposedStatusComplete()
143 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in SetDisposedStatus()
152 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, APP_ID, TYPE_STRING); in SetDisposedStatus()
159 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, DISPOSED_WANT, TYPE_WANT); in SetDisposedStatus()
170 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, PARAM_TYPE_CHECK_ERROR); in SetDisposedStatus()
189 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in SetDisposedStatusSync()
195 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, APP_ID, TYPE_STRING); in SetDisposedStatusSync()
199 napi_value businessError = BusinessError::CreateCommonError( in SetDisposedStatusSync()
207 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, DISPOSED_WANT, TYPE_WANT); in SetDisposedStatusSync()
213 napi_value error = BusinessError in SetDisposedStatusSync()
[all...]
H A Djs_app_control_unsupported.cpp30 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetDisposedStatus()
39 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in SetDisposedStatus()
48 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in DeleteDisposedStatus()
57 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetDisposedStatusSync()
66 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in SetDisposedStatusSync()
75 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in DeleteDisposedStatusSync()
84 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetDisposedRule()
93 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in SetDisposedRule()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_monitor/
H A Dbundle_monitor.cpp51 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in Register()
56 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_CHANGED_EVENT, TYPE_STRING); in Register()
62 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, CALLBACK, TYPE_FUNCTION); in Register()
72 auto error = BusinessError::CreateCommonError(env, ERROR_NOT_SYSTEM_APP); in Register()
78 BusinessError::ThrowError(env, ERROR_PERMISSION_DENIED_ERROR, PERMISSION_ON_DENIED); in Register()
95 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in Unregister()
100 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_CHANGED_EVENT, TYPE_STRING); in Unregister()
111 auto error = BusinessError::CreateCommonError(env, ERROR_NOT_SYSTEM_APP); in Unregister()
117 BusinessError::ThrowError(env, ERROR_PERMISSION_DENIED_ERROR, PERMISSION_OFF_DENIED); in Unregister()
125 BusinessError in Unregister()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_resource/
H A Dbundle_resource_unsupported.cpp29 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetBundleResourceInfo()
38 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetLauncherAbilityResourceInfo()
47 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetAllBundleResourceInfo()
56 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetAllLauncherAbilityResourceInfo()
H A Dbundle_resource.cpp247 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetBundleResourceInfo()
253 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in GetBundleResourceInfo()
274 napi_value businessError = BusinessError::CreateCommonError( in GetBundleResourceInfo()
310 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetLauncherAbilityResourceInfo()
316 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in GetLauncherAbilityResourceInfo()
338 napi_value businessError = BusinessError::CreateCommonError( in GetLauncherAbilityResourceInfo()
389 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in GetAllBundleResourceInfoComplete()
401 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetAllBundleResourceInfo()
413 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, RESOURCE_FLAGS, TYPE_NUMBER); in GetAllBundleResourceInfo()
478 result[0] = BusinessError in GetAllLauncherAbilityResourceInfoComplete()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/free_install/
H A Dfree_install_unsupported.cpp30 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, "isHapModuleRemovable"); in IsHapModuleRemovable()
38 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, "setHapModuleUpgradeFlag"); in SetHapModuleUpgradeFlag()
46 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, "getBundlePackInfo"); in GetBundlePackInfo()
54 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, "getDispatchInfo"); in GetDispatchInfo()
H A Dfree_install.cpp93 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in IsHapModuleRemovableComplete()
106 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in IsHapModuleRemovable()
117 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in IsHapModuleRemovable()
121 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, MODULE_NAME, TYPE_STRING); in IsHapModuleRemovable()
133 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in IsHapModuleRemovable()
185 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in SetHapModuleUpgradeFlagComplete()
197 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in SetHapModuleUpgradeFlag()
208 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, BUNDLE_NAME, TYPE_STRING); in SetHapModuleUpgradeFlag()
212 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, MODULE_NAME, TYPE_STRING); in SetHapModuleUpgradeFlag()
216 BusinessError in SetHapModuleUpgradeFlag()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/shortcut_manager/
H A Dshortcut_manager.cpp74 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, ADD_DESKTOP_SHORTCUT_INFO, in AddDesktopShortcutInfoComplete()
86 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in AddDesktopShortcutInfo()
99 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, PARSE_SHORTCUT_INFO); in AddDesktopShortcutInfo()
104 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, USER_ID, TYPE_NUMBER); in AddDesktopShortcutInfo()
109 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, PARAM_TYPE_CHECK_ERROR); in AddDesktopShortcutInfo()
154 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, ADD_DESKTOP_SHORTCUT_INFO, in DeleteDesktopShortcutInfoComplete()
167 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in DeleteDesktopShortcutInfo()
181 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, PARSE_SHORTCUT_INFO); in DeleteDesktopShortcutInfo()
186 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, USER_ID, TYPE_NUMBER); in DeleteDesktopShortcutInfo()
191 BusinessError in DeleteDesktopShortcutInfo()
[all...]
/foundation/multimedia/media_library/frameworks/js/src/
H A Dphotoaccesshelperinf.js45 class BusinessError extends Error {
175 return errorResult(new BusinessError(ERROR_MSG_WRITE_PERMISSION), asyncCallback);
180 return errorResult(new BusinessError(ERROR_MSG_PARAMERTER_INVALID, ERR_CODE_PARAMERTER_INVALID), asyncCallback);
188 asyncCallback(new BusinessError(ERROR_MSG_USER_DENY));
190 asyncCallback(new BusinessError(ERROR_MSG_INNER_FAIL, result.result));
199 reject(new BusinessError(ERROR_MSG_USER_DENY));
201 reject(new BusinessError(ERROR_MSG_INNER_FAIL, result.result));
207 return errorResult(new BusinessError(error.message, error.code), asyncCallback);
213 throw new BusinessError(ERROR_MSG_PARAMERTER_INVALID, ERR_CODE_PARAMERTER_INVALID);
319 reject(new BusinessError(ERROR_MSG_OHOS_INNER_FAI
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/installer/
H A Dinstaller.cpp83 "BusinessError 401: Parameter error. parameter hapFiles is needed for code signature";
138 result[0] = BusinessError::CreateCommonError( in GetBundleInstallerCompleted()
176 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetBundleInstaller()
189 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetBundleInstaller()
196 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, CALLBACK, FUNCTION_TYPE); in GetBundleInstaller()
227 napi_value businessError = BusinessError::CreateCommonError( in GetBundleInstallerSync()
835 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, in CheckInstallParam()
836 "BusinessError 401: The size of specifiedDistributionType is greater than 128"); in CheckInstallParam()
841 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, in CheckInstallParam()
842 "BusinessError 40 in CheckInstallParam()
[all...]
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/
H A Ddatashare_error_impl.cpp60 int BusinessError::GetCode() const in GetCode()
65 std::string BusinessError::GetMessage() const in GetMessage()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/
H A Dbusiness_error.cpp25 constexpr const char* ERR_MSG_BUSINESS_ERROR = "BusinessError $: ";
62 "BusinessError 401: Parameter error. The number of parameters is incorrect.";
237 void BusinessError::ThrowError(napi_env env, int32_t err, const std::string &msg) in ThrowError()
243 void BusinessError::ThrowParameterTypeError(napi_env env, int32_t err, in ThrowParameterTypeError()
250 void BusinessError::ThrowTooFewParametersError(napi_env env, int32_t err) in ThrowTooFewParametersError()
255 napi_value BusinessError::CreateError(napi_env env, int32_t err, const std::string& msg) in CreateError()
267 napi_value BusinessError::CreateCommonError( in CreateCommonError()
289 void BusinessError::ThrowEnumError(napi_env env, in ThrowEnumError()
296 napi_value BusinessError::CreateEnumError(napi_env env, in CreateEnumError()
H A Dbusiness_error.h25 class BusinessError { class
50 std::string errMessage = "BusinessError 401: Parameter error. parameter " + (strName) + " is empty"; \
51 auto businessError = BusinessError::CreateError(env, 401, errMessage); \
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/
H A Ddatashare_error_impl.h56 class BusinessError : public Error { class
58 BusinessError(int code, const std::string &message) : code_(code), message_(message){}; in BusinessError() function in OHOS::DataShare::BusinessError
/foundation/bundlemanager/distributed_bundle_framework/interfaces/kits/js/distributedBundle/
H A Ddistributed_bundle_unsupported.cpp30 napi_value error = BusinessError::CreateCommonError(env, ERROR_SYSTEM_ABILITY_NOT_FOUND, in GetRemoteAbilityInfo()
H A Ddistributed_bundle.cpp264 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in GetRemoteAbilityInfoComplete()
294 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in GetRemoteAbilityInfo()
302 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, in GetRemoteAbilityInfo()
310 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, PARAMETER_LOCALE, TYPE_STRING); in GetRemoteAbilityInfo()
315 BusinessError::ThrowError(env, ERROR_PARAM_CHECK_ERROR, in GetRemoteAbilityInfo()
316 "BusinessError 401: The number of ElementNames is greater than 10"); in GetRemoteAbilityInfo()
/foundation/ability/ability_runtime/service_router_framework/interfaces/kits/js/serviceroutermgr/
H A Dservice_router_mgr.cpp207 result[0] = BusinessError::CreateCommonError(env, asyncCallbackInfo->err, in QueryBusinessAbilityInfosComplete()
230 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in QueryBusinessAbilityInfos()
240 BusinessError::ThrowParameterTypeError(env, ERROR_PARAM_CHECK_ERROR, TYPE_BUSINESS_AIBILITY_FILTER, in QueryBusinessAbilityInfos()
254 BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); in QueryBusinessAbilityInfos()

Completed in 19 milliseconds

12