Home
last modified time | relevance | path

Searched refs:GetErrorCode (Results 1 – 25 of 131) sorted by relevance

123456

/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dfile_fs_impl.cpp320 return GetErrorCode(ENOMEM); in Mkdir()
325 return GetErrorCode(ret); in Mkdir()
341 return GetErrorCode(ret); in Rmdir()
374 return GetErrorCode(ret); in Rmdir()
390 return GetErrorCode(ret); in Rename()
406 return GetErrorCode(ret); in Unlink()
961 return GetErrorCode(ret); in Truncate()
972 return GetErrorCode(ret); in Truncate()
995 return GetErrorCode(ret); in Truncate()
1204 return GetErrorCode(ret); in Utimes()
[all …]
H A Dstream_impl.cpp115 return GetErrorCode(EIO); in Close()
125 return GetErrorCode(EIO); in Flush()
130 return GetErrorCode(errno); in Flush()
140 return {GetErrorCode(EIO), 0}; in ReadImpl()
155 return {GetErrorCode(EIO), 0}; in ReadCur()
164 return {GetErrorCode(state), 0}; in ReadCur()
174 return {GetErrorCode(EIO), 0}; in Read()
183 return {GetErrorCode(state), 0}; in Read()
205 return {GetErrorCode(state), 0}; in WriteCur()
211 return {GetErrorCode(EIO), 0}; in WriteCur()
[all …]
H A Dfile_fs_ffi.cpp122 ret.code = OHOS::CJSystemapi::FileFs::GetErrorCode(ret.code); in FfiOHOSFileFsRead()
134 ret.code = OHOS::CJSystemapi::FileFs::GetErrorCode(ret.code); in FfiOHOSFileFsReadCur()
146 ret.code = OHOS::CJSystemapi::FileFs::GetErrorCode(ret.code); in FfiOHOSFileFsWrite()
339 return OHOS::CJSystemapi::FileFs::GetErrorCode(ret); in FfiOHOSFileFsCopyFile()
350 return OHOS::CJSystemapi::FileFs::GetErrorCode(ret); in FfiOHOSFileFsCopyFileSI()
361 return OHOS::CJSystemapi::FileFs::GetErrorCode(ret); in FfiOHOSFileFsCopyFileIS()
372 return OHOS::CJSystemapi::FileFs::GetErrorCode(ret); in FfiOHOSFileFsCopyFileII()
383 return OHOS::CJSystemapi::FileFs::GetErrorCode(ret); in FfiOHOSFileFsMoveFile()
493 return OHOS::CJSystemapi::FileFs::GetErrorCode(ret); in FfiOHOSFileFsFdatasync()
504 return OHOS::CJSystemapi::FileFs::GetErrorCode(ret); in FfiOHOSFileFsFsync()
[all …]
H A DreaderIterator_impl.cpp32 return {GetErrorCode(errno), entity_->offset == 0, nullptr}; in Next()
40 return {GetErrorCode(ENOMEM), done, nullptr}; in Next()
46 return { GetErrorCode(ENOMEM), done, value}; in Next()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/c/environment/
H A Denvironment.c26 return GetErrorCode(-PARAMETER_ERROR); in OH_Environment_GetUserDownloadDir()
30 return GetErrorCode(ret); in OH_Environment_GetUserDownloadDir()
38 return GetErrorCode(-PARAMETER_ERROR); in OH_Environment_GetUserDocumentDir()
42 return GetErrorCode(ret); in OH_Environment_GetUserDocumentDir()
50 return GetErrorCode(-PARAMETER_ERROR); in OH_Environment_GetUserDesktopDir()
54 return GetErrorCode(ret); in OH_Environment_GetUserDesktopDir()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/net_ssl/net_ssl_exec/src/
H A Dnet_ssl_exec.cpp50 if (context->GetErrorCode() == PARSE_ERROR_CODE) { in ExecVerify()
60 NETSTACK_LOGD("verifyResult is %{public}d\n", context->GetErrorCode()); in ExecVerify()
62 if (context->GetErrorCode() != 0) { in ExecVerify()
70 NETSTACK_LOGD("verifyResult is %{public}d\n", context->GetErrorCode()); in ExecVerify()
71 if (context->GetErrorCode() != 0) { in ExecVerify()
85 napi_create_int32(context->GetEnv(), static_cast<int32_t>(context->GetErrorCode()), &result); in VerifyCallback()
/ohos5.0/foundation/communication/netmanager_base/utils/napi_utils/include/
H A Dmodule_template.h50 …napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().… in InterfaceWithoutManager()
57 NETMANAGER_BASE_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceWithoutManager()
86 …napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().… in Interface()
93 NETMANAGER_BASE_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in Interface()
127 …napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().… in InterfaceSync()
132 NETMANAGER_BASE_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceSync()
142 NETMANAGER_BASE_LOGE("executor is fail, errorcode= %{public}d", context->GetErrorCode()); in InterfaceSync()
143 …napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().… in InterfaceSync()
167 NETMANAGER_BASE_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceWithOutAsyncWork()
/ohos5.0/foundation/communication/netstack/test/unittest/http_client/
H A DHttpClientErrorTest.cpp46 int errorCode = req.GetErrorCode();
55 int errorCode = req.GetErrorCode();
81 int errorCode = req.GetErrorCode();
90 int errorCode = req.GetErrorCode();
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/net_ssl/net_ssl_module/src/
H A Dnet_ssl_module.cpp89 if (context->GetErrorCode() != PARSE_ERROR_CODE) { in VerifyCertificationSync()
92 NETSTACK_LOGD("verifyResult is %{public}d\n", context->GetErrorCode()); in VerifyCertificationSync()
95 NETSTACK_LOGD("verifyResult is %{public}d\n", context->GetErrorCode()); in VerifyCertificationSync()
100 napi_status status = napi_create_int32(env, context->GetErrorCode(), &verifyResult); in VerifyCertificationSync()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/quick_fix/quick_fix_error_utils_test/
H A Dquick_fix_error_utils_test.cpp58 errCode = QuickFixErrorUtil::GetErrorCode(ERR_QUICKFIX_PERMISSION_DENIED);
62 errCode = QuickFixErrorUtil::GetErrorCode(QUICK_FIX_COPY_FILES_FAILED);
66 … errCode = QuickFixErrorUtil::GetErrorCode(1000); // 1000 is not a defined error code in quick fix
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
H A Dtcp_server_common_context.cpp70 int32_t TcpServerCommonContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::TcpServerCommonContext
76 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
89 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_get_loopback_context.cpp76 int32_t MulticastGetLoopbackContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::MulticastGetLoopbackContext
78 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
99 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_get_ttl_context.cpp73 int32_t MulticastGetTTLContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::MulticastGetTTLContext
75 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
96 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dcommon_context.cpp70 int32_t CommonContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::CommonContext
76 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
92 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_set_loopback_context.cpp87 int32_t MulticastSetLoopbackContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::MulticastSetLoopbackContext
89 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
110 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_set_ttl_context.cpp84 int32_t MulticastSetTTLContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::MulticastSetTTLContext
86 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
107 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_membership_context.cpp92 int32_t MulticastMembershipContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::MulticastMembershipContext
94 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
115 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dtcp_server_listen_context.cpp105 int32_t TcpServerListenContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::TcpServerListenContext
111 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
124 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dbind_context.cpp95 int32_t BindContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::BindContext
101 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
117 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dtcp_server_send_context.cpp120 int32_t TcpServerSendContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Socket::TcpServerSendContext
126 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
139 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
/ohos5.0/foundation/communication/netstack/utils/napi_utils/include/
H A Dmodule_template.h72 …napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().… in InterfaceWithManagerWrapper()
79 NETSTACK_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceWithManagerWrapper()
122 …napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().… in InterfaceWithSharedManager()
129 NETSTACK_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceWithSharedManager()
181 NETSTACK_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceWithOutAsyncWorkWithManagerWrapper()
230 NETSTACK_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceWithOutAsyncWorkWithSharedManager()
267 …napi_throw_error(env, std::to_string(context->GetErrorCode()).c_str(), context->GetErrorMessage().… in Interface()
274 NETSTACK_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in Interface()
322 NETSTACK_LOGE("work failed error code = %{public}d", context->GetErrorCode()); in InterfaceWithOutAsyncWork()
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/pan/
H A Dnapi_bluetooth_pan.cpp151 …HILOGI("errorCode:%{public}s, devices size:%{public}zu", GetErrorCode(errorCode).c_str(), devices.… in GetConnectionDevices()
179 HILOGI("errorCode:%{public}s", GetErrorCode(errorCode).c_str()); in GetDeviceState()
205 …HILOGI("errorCode:%{public}s, devices size:%{public}zu", GetErrorCode(errorCode).c_str(), devices.… in GetConnectedDevices()
233 HILOGI("errorCode:%{public}s", GetErrorCode(errorCode).c_str()); in GetConnectionState()
254 HILOGI("errorCode:%{public}s", GetErrorCode(errorCode).c_str()); in Disconnect()
279 HILOGI("errorCode:%{public}s", GetErrorCode(errorCode).c_str()); in SetTethering()
294 HILOGI("errorCode:%{public}s", GetErrorCode(errorCode).c_str()); in IsTetheringOn()
/ohos5.0/foundation/distributeddatamgr/udmf/framework/jskitsimpl/common/
H A Dnapi_error_utils.cpp30 const std::optional<NapiErrorCode> GetErrorCode(int32_t errorCode) in GetErrorCode() function
47 auto errormsg = GetErrorCode(error); in GenerateNapiError()
69 auto errorMsg = GetErrorCode(status); in ThrowNapiError()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/c/fileio/
H A Dfileio.c25 return GetErrorCode(-PARAMETER_ERROR); in OH_FileIO_GetFileLocation()
29 return GetErrorCode(ret); in OH_FileIO_GetFileLocation()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/websocket/async_context/src/
H A Dclose_context.cpp100 int32_t CloseContext::GetErrorCode() const in GetErrorCode() function in OHOS::NetStack::Websocket::CloseContext
106 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
122 auto err = BaseContext::GetErrorCode(); in GetErrorMessage()

123456