From aefce08dffe57d9bd2631a26137706e3a951b2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=99=93=E6=99=B4?= Date: Thu, 14 Nov 2024 16:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=9C=80=E6=96=B0dts?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑晓晴 --- frameworks/js/napi/napi_util.cpp | 3 +++ interfaces/innerkits/include/telephony_errors.h | 1 + 2 files changed, 4 insertions(+) diff --git a/frameworks/js/napi/napi_util.cpp b/frameworks/js/napi/napi_util.cpp index 3ed540ace..847dec0de 100755 --- a/frameworks/js/napi/napi_util.cpp +++ b/frameworks/js/napi/napi_util.cpp @@ -510,6 +510,9 @@ bool NapiUtil::CreateEsimServiceErrorMessageForJs(int32_t errorCode, JsErrorCode case TELEPHONY_ERR_IPC_CONNECT_STUB_FAIL: jsErrorCode = JS_ERROR_ESIM_SERVICE_ERROR; break; + case TELEPHONY_ERR_NOT_SUPPORT_ESIM: + jsErrorCode = JS_ERROR_DEVICE_NOT_SUPPORT_THIS_API; + break; default: flag = false; break; diff --git a/interfaces/innerkits/include/telephony_errors.h b/interfaces/innerkits/include/telephony_errors.h index db5e8ef9b..e40a8ccdb 100755 --- a/interfaces/innerkits/include/telephony_errors.h +++ b/interfaces/innerkits/include/telephony_errors.h @@ -81,6 +81,7 @@ enum { TELEPHONY_ERR_MMS_FAIL_HTTP_ERROR, TELEPHONY_ERR_MMS_FAIL_DATA_NETWORK_ERROR, TELEPHONY_ERR_VCARD_FILE_INVALID, + TELEPHONY_ERR_NOT_SUPPORT_ESIM, }; // Error code for telephony call manager