/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/ |
D | bundle_manager_sync.cpp | 93 napi_value businessError = BusinessError::CreateCommonError( in SetApplicationEnabledSync() local 95 napi_throw(env, businessError); in SetApplicationEnabledSync() 134 napi_value businessError = BusinessError::CreateCommonError( in SetAbilityEnabledSync() local 136 napi_throw(env, businessError); in SetAbilityEnabledSync() 170 …napi_value businessError = BusinessError::CreateCommonError(env, ret, IS_APPLICATION_ENABLED_SYNC); in IsApplicationEnabledSync() local 171 napi_throw(env, businessError); in IsApplicationEnabledSync() 205 … napi_value businessError = BusinessError::CreateCommonError(env, ret, IS_ABILITY_ENABLED_SYNC); in IsAbilityEnabledSync() local 206 napi_throw(env, businessError); in IsAbilityEnabledSync() 293 napi_value businessError = BusinessError::CreateCommonError( in QueryExtensionInfosSync() local 295 napi_throw(env, businessError); in QueryExtensionInfosSync() [all …]
|
/foundation/multimodalinput/input/util/common/include/ |
D | util_napi_error.h | 53 napi_value businessError = nullptr; \ 58 napi_create_error(env, nullptr, errorMsg, &businessError); \ 59 napi_set_named_property(env, businessError, ERR_CODE.c_str(), errorCode); \ 60 napi_throw(env, businessError); \
|
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/ |
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() 129 napi_value businessError = GenerateBusinessError(env, code, msg); in GetNapiErrAddData() local 130 …napi_status status = napi_set_named_property(env, businessError, FILEIO_TAG_ERR_DATA.c_str(), data… in GetNapiErrAddData() 135 return businessError; in GetNapiErrAddData() 181 napi_value businessError = GenerateBusinessError(env, code, msg); in ThrowErrAddData() local 182 …napi_status status = napi_set_named_property(env, businessError, FILEIO_TAG_ERR_DATA.c_str(), data… in ThrowErrAddData() 187 status = napi_throw(env, businessError); in ThrowErrAddData()
|
/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
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, "data", eData); in HandlePromiseErrCode() [all …]
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/ |
D | napi_async_call.cpp | 71 void AsyncCall::SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<Error> er… 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() 144 napi_value businessError = nullptr; in OnComplete() local 145 SetBusinessError(env, &businessError, context->error, context->apiversion); in OnComplete() 146 result[ARG_ERROR] = businessError; in OnComplete()
|
/foundation/communication/nfc/frameworks/js/napi/controller/ |
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_share/frameworks/js/napi/dataShare/src/ |
D | async_call.cpp | 99 void SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<Error> error) in SetBusinessError() argument 101 napi_create_object(env, businessError); in SetBusinessError() 107 napi_set_named_property(env, *businessError, "code", code); in SetBusinessError() 108 napi_set_named_property(env, *businessError, "message", msg); in SetBusinessError() 126 napi_value businessError = nullptr; in OnComplete() local 127 SetBusinessError(env, &businessError, context->ctx->error); in OnComplete() 128 result[ARG_ERROR] = businessError; in OnComplete()
|
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/common/ |
D | napi_queue.cpp | 119 void NapiQueue::SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<Error> er… in SetBusinessError() argument 121 napi_create_object(env, businessError); in SetBusinessError() 127 napi_set_named_property(env, *businessError, "code", code); in SetBusinessError() 128 napi_set_named_property(env, *businessError, "message", msg); in SetBusinessError() 142 napi_value businessError = nullptr; in GenerateOutput() local 143 SetBusinessError(ctxt->env, &businessError, ctxt->error); in GenerateOutput() 144 result[RESULT_ERROR] = businessError; in GenerateOutput()
|
/foundation/distributeddatamgr/data_share/frameworks/native/provider/include/ |
D | js_datashare_ext_ability.h | 161 std::vector<std::string> &columns, DatashareBusinessError &businessError) override; 294 void GetBusinessError(DatashareBusinessError &businessError) in GetBusinessError() argument 296 businessError = businessError_; in GetBusinessError() 299 void SetBusinessError(DatashareBusinessError &businessError) in SetBusinessError() argument 301 businessError_ = businessError; in SetBusinessError() 320 …tic void UnWrapBusinessError(napi_env env, napi_value info, DatashareBusinessError &businessError);
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/ |
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/bundlemanager/bundle_framework/interfaces/kits/js/app_control/ |
D | js_app_control.cpp | 194 napi_value businessError = BusinessError::CreateCommonError( in SetDisposedStatusSync() local 196 napi_throw(env, businessError); in SetDisposedStatusSync() 217 napi_value businessError = BusinessError::CreateCommonError( in SetDisposedStatusSync() local 219 napi_throw(env, businessError); in SetDisposedStatusSync() 320 napi_value businessError = BusinessError::CreateCommonError( in DeleteDisposedStatusSync() local 322 napi_throw(env, businessError); in DeleteDisposedStatusSync() 337 napi_value businessError = BusinessError::CreateCommonError( in DeleteDisposedStatusSync() local 339 napi_throw(env, businessError); in DeleteDisposedStatusSync() 441 napi_value businessError = BusinessError::CreateCommonError( in GetDisposedStatusSync() local 443 napi_throw(env, businessError); in GetDisposedStatusSync() [all …]
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
D | napi_async_call.cpp | 74 void AsyncCall::SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<JSError> … in SetBusinessError() argument 78 napi_create_object(env, businessError); in SetBusinessError() 83 napi_set_named_property(env, *businessError, "code", code); in SetBusinessError() 84 napi_set_named_property(env, *businessError, "message", msg); in SetBusinessError()
|
/foundation/multimodalinput/input/frameworks/napi/short_key/src/ |
D | js_short_key_manager.cpp | 72 napi_value businessError = nullptr; in getResult() local 76 CHKRF(napi_create_error(env, nullptr, errMsg, &businessError), CREATE_ERROR); in getResult() 77 … CHKRF(napi_set_named_property(env, businessError, ERR_CODE.c_str(), errCode), SET_NAMED_PROPERTY); in getResult() 78 results[0] = businessError; in getResult()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/ |
D | launcher_bundle_manager.cpp | 152 napi_value businessError = BusinessError::CreateCommonError( in GetLauncherAbilityInfoSync() local 155 napi_throw(env, businessError); in GetLauncherAbilityInfoSync() 163 napi_value businessError = BusinessError::CreateCommonError( in GetLauncherAbilityInfoSync() local 165 napi_throw(env, businessError); in GetLauncherAbilityInfoSync() 354 napi_value businessError = BusinessError::CreateCommonError( in GetShortcutInfoSync() local 357 napi_throw(env, businessError); in GetShortcutInfoSync() 364 napi_value businessError = BusinessError::CreateCommonError( in GetShortcutInfoSync() local 366 napi_throw(env, businessError); in GetShortcutInfoSync()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/ |
D | business_error.cpp | 187 napi_value businessError = nullptr; in CreateError() local 192 napi_create_error(env, nullptr, errorMessage, &businessError); in CreateError() 193 napi_set_named_property(env, businessError, "code", errorCode); in CreateError() 194 return businessError; in CreateError()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/ |
D | napi_async_call.cpp | 91 … AsyncCall::SetBusinessError(napi_env env, std::shared_ptr<Error> error, napi_value *businessError) in SetBusinessError() argument 96 napi_create_object(env, businessError); in SetBusinessError() 101 napi_set_named_property(env, *businessError, "code", code); in SetBusinessError() 102 napi_set_named_property(env, *businessError, "message", msg); in SetBusinessError()
|
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/service/src/ |
D | general_controller_service_impl.cpp | 56 …rePredicates &predicates, std::vector<std::string> &columns, DatashareBusinessError &businessError) in Query() argument 63 return proxy->Query(uri, predicates, columns, businessError); in Query()
|
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/provider/src/ |
D | general_controller_provider_impl.cpp | 70 …rePredicates &predicates, std::vector<std::string> &columns, DatashareBusinessError &businessError) in Query() argument 82 return proxy->Query(uri, predicates, columns, businessError); in Query()
|
/foundation/distributeddatamgr/data_share/frameworks/native/provider/src/ |
D | datashare_stub_impl.cpp | 208 …rePredicates &predicates, std::vector<std::string> &columns, DatashareBusinessError &businessError) in Query() argument 224 std::function<void()> syncTaskFunc = [=, &columns, &resultSet, &businessError, &extension]() { in Query() 225 resultSet = extension->Query(uri, predicates, columns, businessError); in Query() 227 std::function<bool()> getRetFunc = [=, &resultSet, &businessError, in Query() 235 extension->GetBusinessError(businessError); in Query()
|
D | datashare_stub.cpp | 221 DatashareBusinessError businessError; in CmdQuery() local 222 auto resultSet = Query(uri, predicates, columns, businessError); in CmdQuery() 224 reply.WriteInt32(businessError.GetCode()); in CmdQuery() 225 reply.WriteString(businessError.GetMessage()); in CmdQuery()
|
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/common/ |
D | general_controller.h | 44 std::vector<std::string> &columns, DatashareBusinessError &businessError) = 0;
|
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/service/include/ |
D | general_controller_service_impl.h | 41 std::vector<std::string> &columns, DatashareBusinessError &businessError) override;
|
/foundation/multimedia/media_library/frameworks/js/src/ |
D | userfile_client.cpp | 150 DatashareBusinessError businessError; in Query() local 151 auto resultSet = sDataShareHelper_->Query(uri, predicates, columns, &businessError); in Query() 152 errCode = businessError.GetCode(); in Query()
|
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/provider/include/ |
D | general_controller_provider_impl.h | 42 std::vector<std::string> &columns, DatashareBusinessError &businessError) override;
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/ |
D | napi_async_call.h | 64 …static void SetBusinessError(napi_env env, napi_value *businessError, std::shared_ptr<JSError> err…
|