/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_hiappevent_userinfo.cpp | 54 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("name", "string")); in SetUserId() 60 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, "Parameter error. The name parameter is invalid."); in SetUserId() 71 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("userId", "string")); in SetUserId() 77 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, "Parameter error. The value parameter is invalid."… in SetUserId() 90 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("name", "string")); in GetUserId() 96 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, "Parameter error. The name parameter is invalid."); in GetUserId() 111 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("name", "string")); in SetUserProperty() 117 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, "Parameter error. The name parameter is invalid."); in SetUserProperty() 128 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("user property", "string")); in SetUserProperty() 134 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, "Parameter error. The value parameter is invalid."… in SetUserProperty() [all …]
|
D | napi_hiappevent_watch.cpp | 54 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(NAME_PROPERTY)); in IsValidName() 58 … NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(NAME_PROPERTY, "string")); in IsValidName() 62 NapiUtil::ThrowError(env, NapiError::ERR_INVALID_WATCHER_NAME, "Invalid watcher name."); in IsValidName() 74 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(COND_PROPERTY, "TriggerCond… in IsValidCondition() 83 … NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(propName, "number")); in IsValidCondition() 94 … NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(FILTERS_DOAMIN_PROP)); in IsValidFilter() 98 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(FILTERS_DOAMIN_PROP, "strin… in IsValidFilter() 102 …NapiUtil::ThrowError(env, NapiError::ERR_INVALID_FILTER_DOMAIN, "Invalid filtering event domain."); in IsValidFilter() 107 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(FILTERS_TYPES_PROP, "EventT… in IsValidFilter() 112 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(FILTERS_NAMES_PROP, "string… in IsValidFilter() [all …]
|
D | napi_hiappevent_builder.cpp | 44 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("domain"), isV9_); in IsValidEventDomain() 48 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("domain", "string"), isV9_); in IsValidEventDomain() 57 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("name"), isV9_); in IsValidEventName() 61 … NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("name", "string"), isV9_); in IsValidEventName() 70 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("eventType"), isV9_); in IsValidEventType() 74 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("eventType", "EventType"), … in IsValidEventType() 83 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("params"), isV9_); in IsValidEventParam() 87 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("params", "object"), isV9_); in IsValidEventParam() 96 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("info", "AppEventInfo"), is… in IsValidEventInfo() 148 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, errMsg, isV9_); in AddArrayParam2EventPack() [all …]
|
D | napi_hiappevent_js_v9.cpp | 47 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("addProcessor")); in AddProcessor() 61 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("removeProcessor")); in RemoveProcessor() 111 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("config")); in Configure() 124 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("setUserId")); in SetUserId() 137 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("getUserId")); in GetUserId() 152 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("setUserProperty")); in SetUserProperty() 165 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("getUserProperty")); in GetUserProperty() 186 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("watcher")); in AddWatcher() 196 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("watcher")); in RemoveWatcher()
|
D | napi_hiappevent_config.cpp | 36 …NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("config", "ConfigOption"), … in Configure() 49 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, errMsg, isThrow); in Configure() 54 NapiUtil::ThrowError(env, NapiError::ERR_INVALID_MAX_STORAGE, errMsg, isThrow); in Configure()
|
D | napi_app_event_holder.cpp | 110 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("row")); in NapiSetRow() 114 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("row", "number")); in NapiSetRow() 122 NapiUtil::ThrowError(env, NapiError::ERR_INVALID_SIZE, "Invalid row value."); in NapiSetRow() 134 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("size")); in NapiSetSize() 138 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("size", "number")); in NapiSetSize() 146 NapiUtil::ThrowError(env, NapiError::ERR_INVALID_SIZE, "Invalid size value."); in NapiSetSize()
|
D | napi_param_builder.cpp | 60 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, errMsg, isV9_); in AddArrayParam2EventPack() 82 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, errMsg, isV9_); in AddParams2EventPack() 104 … NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg("setEventParam"), isV9_); in BuildEventParam()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_push.cpp | 77 ThrowError(env, ERROR_PARAM_INVALID); in OnRegisterPushCallback() 84 ThrowError(env, ERROR_PARAM_INVALID); in OnRegisterPushCallback() 89 ThrowError(env, ERROR_NOT_SYSTEM_APP); in OnRegisterPushCallback() 97 ThrowError(env, ERROR_INTERNAL_ERROR); in OnRegisterPushCallback() 106 ThrowError(env, Common::ErrorToExternal(result)); in OnRegisterPushCallback() 131 ThrowError(env, ERROR_PARAM_INVALID); in OnUnregisterPushCallback() 140 ThrowError(env, ERROR_PARAM_INVALID); in OnUnregisterPushCallback() 145 ThrowError(env, ERROR_NOT_SYSTEM_APP); in OnUnregisterPushCallback() 150 ThrowError(env, ERROR_INTERNAL_ERROR); in OnUnregisterPushCallback() 158 ThrowError(env, ERROR_PARAM_INVALID); in OnUnregisterPushCallback()
|
/base/powermgr/power_manager/frameworks/napi/power/ |
D | power_napi.cpp | 73 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in Wakeup() 80 error.ThrowError(env, code); in Wakeup() 96 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in Suspend() 111 error.ThrowError(env, code); in Suspend() 128 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in Hibernate() 138 error.ThrowError(env, PowerErrors::ERR_FAILURE); in Hibernate() 151 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in SetPowerMode() 207 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in RebootOrShutdown() 220 error.ThrowError(env, code); in RebootOrShutdown() 233 return asyncInfo->GetError().ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in SetPowerModeCallback() [all …]
|
/base/security/certificate_manager/interfaces/kits/napi/src/ |
D | cm_napi_sign_verify.cpp | 123 ThrowError(env, PARAM_ERROR, "arguments invalid, type of param padding is not number"); in GetPadding() 132 ThrowError(env, PARAM_ERROR, "arguments invalid, get padding value failed"); in GetPadding() 145 ThrowError(env, PARAM_ERROR, "padding do not exist in PADDING_MAP"); in GetPadding() 170 ThrowError(env, PARAM_ERROR, "arguments invalid, type of param digest is not number"); in GetDigest() 178 ThrowError(env, PARAM_ERROR, "arguments invalid, get digest value failed"); in GetDigest() 191 ThrowError(env, PARAM_ERROR, "digest do not exist in DIGEST_MAP"); in GetDigest() 279 …ThrowError(env, PARAM_ERROR, "init arguments count invalid, arguments count need between 2 and 3."… in ParseCMInitParams() 287 ThrowError(env, PARAM_ERROR, "authUri is not a string or the length is 0 or too long."); in ParseCMInitParams() 295 ThrowError(env, PARAM_ERROR, "get spec type error"); in ParseCMInitParams() 304 ThrowError(env, PARAM_ERROR, "Get callback failed, callback must be a function."); in ParseCMInitParams() [all …]
|
D | cm_napi_user_trusted_cert.cpp | 143 ThrowError(env, PARAM_ERROR, "arguments count invalid when installing user cert"); in ParseInstallUserCertParams() 151 ThrowError(env, PARAM_ERROR, "get context type error"); in ParseInstallUserCertParams() 160 ThrowError(env, PARAM_ERROR, "Get callback type failed."); in ParseInstallUserCertParams() 177 ThrowError(env, PARAM_ERROR, "arguments count invalid when uninstalling user cert"); in ParseUninstallUserCertParams() 185 ThrowError(env, PARAM_ERROR, "get certUri type error"); in ParseUninstallUserCertParams() 194 ThrowError(env, PARAM_ERROR, "Get callback type failed."); in ParseUninstallUserCertParams() 211 ThrowError(env, PARAM_ERROR, "arguments count invalid when uninstalling all user cert"); in ParseUninstallAllUserCertParams() 220 ThrowError(env, PARAM_ERROR, "Get callback type failed."); in ParseUninstallAllUserCertParams() 302 ThrowError(env, PARAM_ERROR, "queue async work error"); in InstallUserCertAsyncWork() 352 ThrowError(env, PARAM_ERROR, "queue async work error"); in UninstallUserCertAsyncWork() [all …]
|
D | cm_napi_set_cert_status.cpp | 79 ThrowError(env, PARAM_ERROR, "arguments count invalid."); in SetCertStatusParseParams() 87 ThrowError(env, PARAM_ERROR, "get certUri type error"); in SetCertStatusParseParams() 95 ThrowError(env, PARAM_ERROR, "get store type error"); in SetCertStatusParseParams() 103 ThrowError(env, PARAM_ERROR, "get status type error"); in SetCertStatusParseParams() 112 ThrowError(env, PARAM_ERROR, "Get callback type failed."); in SetCertStatusParseParams()
|
D | cm_napi_install_app_cert_common.cpp | 79 … ThrowError(env, PARAM_ERROR, "arguments count invalid, arguments count need between 3 and 4."); in InstallAppCertParseParams() 94 … ThrowError(env, PARAM_ERROR, "keystore is not a uint8Array or the length is 0 or too long."); in InstallAppCertParseParams() 102 … ThrowError(env, PARAM_ERROR, "keystore Pwd is not a string or the length is 0 or too long."); in InstallAppCertParseParams() 110 ThrowError(env, PARAM_ERROR, "keyAlias is not a string or the length is 0 or too long."); in InstallAppCertParseParams() 119 ThrowError(env, PARAM_ERROR, "Get callback failed, callback must be a function."); in InstallAppCertParseParams()
|
D | cm_napi_grant.cpp | 101 ThrowError(env, PARAM_ERROR, "arguments count invalid when grant or remove uid"); in ParseGrantUidParams() 109 ThrowError(env, PARAM_ERROR, "keyUri type error"); in ParseGrantUidParams() 117 ThrowError(env, PARAM_ERROR, "appUid type error"); in ParseGrantUidParams() 126 ThrowError(env, PARAM_ERROR, "Get callback type failed."); in ParseGrantUidParams() 147 … ThrowError(env, PARAM_ERROR, "arguments count invalid, arguments count need between 1 and 2."); in ParseIsAuthedParams() 155 ThrowError(env, PARAM_ERROR, "keyUri is not a string or the length is 0 or too long."); in ParseIsAuthedParams() 164 ThrowError(env, PARAM_ERROR, "Get callback failed, callback must be a function."); in ParseIsAuthedParams() 356 ThrowError(env, INNER_FAILURE, "queue asyncWork error"); in GrantUidAsyncWork() 380 ThrowError(env, INNER_FAILURE, "queue asyncWork error"); in RemoveUidAsyncWork() 404 ThrowError(env, INNER_FAILURE, "queue asyncWork error"); in IsAuthedAsyncWork() [all …]
|
D | cm_napi_uninstall_app_cert_common.cpp | 68 … ThrowError(env, PARAM_ERROR, "arguments count invalid, arguments count need between 1 and 2."); in UninstallAppCertParseParams() 76 ThrowError(env, PARAM_ERROR, "keyUri is not a string or the length is 0 or too long."); in UninstallAppCertParseParams() 85 ThrowError(env, PARAM_ERROR, "Get callback failed, callback must be a function."); in UninstallAppCertParseParams()
|
D | cm_napi_get_app_cert_info_common.cpp | 71 … ThrowError(env, PARAM_ERROR, "arguments count invalid, arguments count need between 1 and 2."); in GetAppCertInfoParseParams() 79 ThrowError(env, PARAM_ERROR, "keyUri is not a string or the length is 0 or too long."); in GetAppCertInfoParseParams() 88 ThrowError(env, PARAM_ERROR, "Get callback failed, callback must be a function."); in GetAppCertInfoParseParams()
|
/base/hiviewdfx/hiview/interfaces/js/napi/src/ |
D | hiview_napi_util.cpp | 163 ThrowError(env, detail.first, detail.second); in ThrowErrorByCode() 168 ThrowError(env, HiviewNapiErrCode::ERR_PARAM_CHECK, in ThrowParamContentError() 174 ThrowError(env, HiviewNapiErrCode::ERR_PARAM_CHECK, in ThrowParamTypeError() 178 void HiviewNapiUtil::ThrowError(napi_env env, const int32_t code, const std::string& msg) in ThrowError() function in OHOS::HiviewDFX::HiviewNapiUtil 187 ThrowError(env, HiviewNapiErrCode::ERR_NON_SYS_APP_PERMISSION, in ThrowSystemAppPermissionError()
|
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/src/ |
D | napi_hichecker.cpp | 75 ThrowError(env, ERR_PARAM); in AddCheckRule() 86 ThrowError(env, ERR_PARAM); in RemoveCheckRule() 96 ThrowError(env, ERR_PARAM); in ContainsCheckRule() 150 void ThrowError(napi_env env, int errCode) in ThrowError() function
|
/base/theme/screenlock_mgr/frameworks/js/napi/src/ |
D | napi_screenlock_ability.cpp | 106 void ThrowError(napi_env env, const uint32_t &code, const std::string &msg) in ThrowError() function 178 ThrowError(env, errInfo.errorCode_, errInfo.message_); in NAPI_IsLocked() 253 ThrowError(env, JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED); in NAPI_Lock() 344 ThrowError(env, JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED); in NAPI_Unlock() 410 ThrowError(env, JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED); in NAPI_OnSystemEvent() 414 ThrowError(env, JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED); in NAPI_OnSystemEvent() 428 ThrowError(env, errInfo.errorCode_, errInfo.message_); in NAPI_OnSystemEvent() 445 ThrowError(env, JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED); in NAPI_ScreenLockSendEvent() 449 ThrowError(env, JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED); in NAPI_ScreenLockSendEvent() 458 ThrowError(env, JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED); in NAPI_ScreenLockSendEvent() [all …]
|
/base/powermgr/power_manager/frameworks/napi/runninglock/ |
D | runninglock_napi.cpp | 47 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in Create() 70 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in IsSupported() 92 return error.ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in Hold() 138 return asyncInfo->GetError().ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in CreateAsyncCallback() 170 return asyncInfo->GetError().ThrowError(env, PowerErrors::ERR_PARAM_INVALID); in CreatePromise()
|
/base/web/webview/interfaces/kits/napi/common/ |
D | business_error.h | 26 static inline void ThrowError(napi_env env, int32_t err, const std::string& msg) in ThrowError() function
|
/base/powermgr/thermal_manager/frameworks/napi/ |
D | napi_errors.h | 32 napi_value ThrowError(napi_env& env, ThermalErrors code = ThermalErrors::ERR_OK);
|
/base/theme/wallpaper_mgr/frameworks/js/napi/ |
D | js_error.h | 54 static void ThrowError(napi_env env, int32_t errorCode, const std::string &errorMessage);
|
/base/powermgr/battery_statistics/frameworks/napi/include/ |
D | napi_error.h | 32 napi_value ThrowError(napi_env& env, StatsError code = StatsError::ERR_OK);
|
/base/powermgr/power_manager/frameworks/napi/utils/ |
D | napi_errors.h | 32 napi_value ThrowError(napi_env& env, PowerErrors code = PowerErrors::ERR_OK);
|