/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/hyper_graphic_manager/src/ |
H A D | hyper_graphic_manager_napi.cpp | 46 napi_throw_error(env, NULL, "Napi SetRefreshRateMode failed to get argument");
in SetRefreshRateMode() 49 napi_throw_error(env, NULL, "Napi SetRefreshRateMode wrong argument type");
in SetRefreshRateMode() 83 napi_throw_error(env, NULL, "Napi GetScreenSupportedRefreshRates failed to get argument");
in GetScreenSupportedRefreshRates() 86 napi_throw_error(env, NULL, "Napi GetScreenSupportedRefreshRates wrong argument type");
in GetScreenSupportedRefreshRates() 93 napi_throw_error(env, NULL, "Napi GetScreenSupportedRefreshRates illegal screenId input");
in GetScreenSupportedRefreshRates() 102 napi_throw_error(env, NULL, "Napi GetScreenSupportedRefreshRates got a vector too large");
in GetScreenSupportedRefreshRates() 108 napi_throw_error(env, NULL, "Napi GetScreenSupportedRefreshRates got a rate too above maximal value");
in GetScreenSupportedRefreshRates() 137 napi_throw_error(env, NULL, "Napi SetShowRefreshRateEnable failed to get argument");
in SetShowRefreshRateEnabled() 140 napi_throw_error(env, NULL, "Napi SetShowRefreshRateEnable wrong argument type");
in SetShowRefreshRateEnabled()
|
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
H A D | ark_interop_loader.cpp | 27 napi_throw_error(env, "napi call fail", "napi_get_cb_info failed"); in ParseLoadParams() 32 napi_throw_error(env, "argument invalid", "need one argument"); in ParseLoadParams() 39 napi_throw_error(env, "napi call fail", "napi_typeof failed"); in ParseLoadParams() 43 napi_throw_error(env, "argument invalid", "need a string"); in ParseLoadParams() 49 napi_throw_error(env, "argument invalid", "napi_get_value_string_utf8 not ok"); in ParseLoadParams()
|
/foundation/communication/netmanager_base/frameworks/js/napi/netstats/src/ |
H A D | statistics_observer_wrapper.cpp | 47 napi_throw_error(env, std::to_string(NETMANAGER_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in On() 63 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in On() 83 napi_throw_error(env, std::to_string(NETMANAGER_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in Off() 110 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in Off()
|
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/ |
H A D | policy_observer_wrapper.cpp | 49 napi_throw_error(env, std::to_string(NETMANAGER_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in On() 66 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in On() 76 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in On() 95 napi_throw_error(env, std::to_string(NETMANAGER_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in Off() 116 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in Off() 128 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in Off()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/sharing/src/ |
H A D | netshare_observer_wrapper.cpp | 50 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in On() 64 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in On() 81 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in Off() 110 napi_throw_error(env, std::to_string(result).c_str(), errorMsg.c_str()); in Off()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/ |
H A D | interface_state_observer_wrapper.cpp | 54 napi_throw_error(env, std::to_string(NETMANAGER_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in On() 70 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in On() 94 napi_throw_error(env, std::to_string(NETMANAGER_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in Off() 121 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in Off()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/ |
H A D | vpn_module_ext.cpp | 120 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in MakeDataExt() 128 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in MakeDataExt() 136 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in MakeDataExt() 164 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in StartVpnExtensionAbility() 171 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parse want error"); in StartVpnExtensionAbility() 212 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in StopVpnExtensionAbility() 219 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parse want error"); in StopVpnExtensionAbility() 245 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in UpdateVpnAuthorize()
|
H A D | vpn_monitor_ext.cpp | 102 NAPI_CALL(env, napi_throw_error(env, "0", "parse failed")); in On() 113 NAPI_CALL(env, napi_throw_error(env, "0", "parse failed")); in Off()
|
/foundation/multimedia/player_framework/frameworks/js/audio_haptic/src/ |
H A D | audio_haptic_common_napi.cpp | 35 napi_throw_error(env, (std::to_string(code)).c_str(), messageValue.c_str()); in ThrowError() 40 napi_throw_error(env, (std::to_string(code)).c_str(), errMessage.c_str()); in ThrowError()
|
/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | napi_error.cpp | 58 NAPI_CALL_RETURN_VOID(env, napi_throw_error(env, to_string(err).c_str(), message.c_str())); in ThrowError() 73 NAPI_CALL_RETURN_VOID(env, napi_throw_error(env, to_string(err).c_str(), message.c_str())); in ThrowError()
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/ |
H A D | camera_napi_security_utils.cpp | 32 if (napi_throw_error(env, std::to_string(errorCode).c_str(), errorMessage.c_str()) != napi_ok) { in CheckSystemApp()
|
/foundation/arkui/napi/interfaces/inner_api/napi/ |
H A D | native_common.h | 30 napi_throw_error((env), nullptr, errorMessage); \ 37 napi_throw_error((env), nullptr, "assertion (" #assertion ") failed: " message); \
|
/foundation/multimedia/audio_framework/frameworks/js/napi/common/ |
H A D | napi_audio_error.cpp | 36 napi_throw_error(env, (std::to_string(code)).c_str(), messageValue.c_str()); in ThrowError() 47 napi_throw_error(env, (std::to_string(code)).c_str(), messageValue.c_str()); in ThrowError()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_error.h | 51 napi_throw_error((env), nullptr, "error message is empty"); \
56 napi_throw_error((env), std::to_string((error)->GetCode()).c_str(), (error)->GetMessage().c_str()); \
|
/foundation/communication/netmanager_base/utils/napi_utils/include/ |
H A D | module_template.h | 50 napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().c_str()); in InterfaceWithoutManager() 86 napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().c_str()); in Interface() 127 napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().c_str()); in InterfaceSync() 143 napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().c_str()); in InterfaceSync()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/src/ |
H A D | napi_storage_helper.cpp | 130 napi_throw_error(env, nullptr, "Input path error"); in DeleteStorageSync() 136 napi_throw_error(env, std::to_string(errCode).c_str(), "deleteStorage failed"); in DeleteStorageSync() 175 napi_throw_error(env, nullptr, "Input path error"); in RemoveStorageFromCacheSync() 182 napi_throw_error(env, std::to_string(errCode).c_str(), "removeStorageFromCache failed"); in RemoveStorageFromCacheSync()
|
/foundation/communication/netstack/utils/napi_utils/src/ |
H A D | module_template.cpp | 46 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in OnManagerWrapper() 124 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in OffManagerWrapper() 130 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in OffManagerWrapper() 176 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in OnSharedManager() 254 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in OffSharedManager() 260 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in OffSharedManager() 306 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in On() 362 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in Off() 368 napi_throw_error(env, std::to_string(PARSE_ERROR_CODE).c_str(), PARSE_ERROR_MSG); in Off()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/ |
H A D | vpn_module.cpp | 53 napi_throw_error(env, std::to_string(NETMANAGER_EXT_ERR_PARAMETER_ERROR).c_str(), "Parameter error"); in MakeData() 61 napi_throw_error(env, std::to_string(ret).c_str(), errorMsg.c_str()); in MakeData()
|
H A D | vpn_monitor.cpp | 112 NAPI_CALL(env, napi_throw_error(env, "0", "parse failed")); in On() 123 NAPI_CALL(env, napi_throw_error(env, "0", "parse failed")); in Off()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/include/ |
H A D | napi_rdb_error.h | 41 napi_throw_error((env), nullptr, "error message is empty"); \
47 napi_throw_error((env), std::to_string((error)->GetCode()).c_str(), (error)->GetMessage().c_str()); \
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/ |
H A D | uni_error.cpp | 144 throwStatus = napi_throw_error(env, nullptr, msg.c_str()); in ThrowErr() 174 napi_status throwStatus = napi_throw_error(env, nullptr, errMsg.c_str()); in ThrowErr()
|
/foundation/multimedia/drm_framework/frameworks/js/drm_napi/ |
H A D | drm_error_code.cpp | 37 napi_throw_error(env, (std::to_string(code)).c_str(), messageValue.c_str()); in ThrowError()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/animation/window_animation_manager/ |
H A D | rs_window_animation_manager.cpp | 65 napi_throw_error(env, std::to_string(ERR_NOT_SYSTEM_APP).c_str(), in SetController() 78 napi_throw_error(env, std::to_string(ERR_NOT_SYSTEM_APP).c_str(), in MinimizeWindowWithAnimation() 92 napi_throw_error(env, std::to_string(ERR_NOT_SYSTEM_APP).c_str(), in GetWindowAnimationTargets()
|
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/ |
H A D | pasteboard_common.cpp | 165 napi_throw_error(env, std::to_string(errCode).c_str(), message); in CheckArgsType() 175 env, napi_throw_error(env, std::to_string(static_cast<int32_t>(errCode)).c_str(), message), false); in CheckExpression() 256 napi_throw_error(env, std::to_string(errCode).c_str(), "Wrong argument type. Object expected."); in CheckArgsArray() 287 napi_throw_error(env, std::to_string(errCode).c_str(), "Wrong argument type. function expected."); in CheckArgsFunc()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/src/ |
H A D | filter_napi.cpp | 262 napi_throw_error(env, std::to_string(ERR_NOT_SYSTEM_APP).c_str(), in SetPixelStretch() 325 napi_throw_error(env, std::to_string(ERR_NOT_SYSTEM_APP).c_str(), in SetWaterRipple() 382 napi_throw_error(env, std::to_string(ERR_NOT_SYSTEM_APP).c_str(), in SetFlyOut() 427 napi_throw_error(env, std::to_string(ERR_NOT_SYSTEM_APP).c_str(), in SetDistort()
|