From 6d311603db8d736a0673dc9a365cf72769eb45f5 Mon Sep 17 00:00:00 2001 From: wujie <1255071198@qq.com> Date: Thu, 24 Aug 2023 19:49:53 +0800 Subject: [PATCH] docs: secureElement Correction of error code information Signed-off-by: wujie <1255071198@qq.com> --- .../reference/apis/js-apis-secureElement.md | 90 +++++++++---------- .../reference/errorcodes/errorcode-se.md | 8 +- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-secureElement.md b/zh-cn/application-dev/reference/apis/js-apis-secureElement.md index 4bc85b08dc..de344fdcbc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-secureElement.md +++ b/zh-cn/application-dev/reference/apis/js-apis-secureElement.md @@ -261,7 +261,7 @@ isSecureElementPresent(): boolean | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | +| 3300101 | IllegalStateError, service state exception. | **示例:** @@ -302,8 +302,8 @@ try { | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -340,7 +340,7 @@ try { | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | +| 3300101 | IllegalStateError, service state exception. | **示例:** @@ -413,7 +413,7 @@ getATR(): number[] | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | +| 3300101 | IllegalStateError, service state exception. | **示例:** @@ -456,7 +456,7 @@ close(): void | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | +| 3300101 | IllegalStateError, service state exception. | **示例:** @@ -526,7 +526,7 @@ closeChannels(): void | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | +| 3300101 | IllegalStateError, service state exception. | **示例:** @@ -570,10 +570,10 @@ openBasicChannel(aid: number[]): Promise\ | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -619,10 +619,10 @@ try { | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -675,10 +675,10 @@ openBasicChannel(aid: number[], p2: number): Promise\ | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -726,10 +726,10 @@ openBasicChannel(aid: number[], p2:number, callback: AsyncCallback\): v | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -782,10 +782,10 @@ openLogicalChannel(aid: number[]): Promise\ | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -831,10 +831,10 @@ try { | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -887,10 +887,10 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -947,10 +947,10 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300102 | No such element exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -1176,9 +1176,9 @@ transmit(command: number[]): Promise | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** @@ -1228,9 +1228,9 @@ transmit(command: number[], callback: AsyncCallback): void | 错误码ID | 错误信息 | | -------- | -------------------------------- | -| 3300101 | Illegal service state exception. | -| 3300103 | Illegal access rule exception. | -| 3300104 | Secure element IO exception. | +| 3300101 | IllegalStateError, service state exception. | +| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. | +| 3300104 | IOError, there is a communication problem to the reader or the SE. | **示例:** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-se.md b/zh-cn/application-dev/reference/errorcodes/errorcode-se.md index cc39336be4..90c6f89435 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-se.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-se.md @@ -8,7 +8,7 @@ **错误信息** -Illegal service state exception. +IllegalStateError, an attempt is made to use an SE session that has been closed. **错误描述** @@ -28,7 +28,7 @@ SE服务状态异常。 **错误信息** -No such element exception. +NoSuchElementError, the AID on the SE is not available or cannot be selected. **错误描述** @@ -48,7 +48,7 @@ No such element exception. **错误信息** -Illegal access rule exception. +SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. **错误描述** @@ -67,7 +67,7 @@ Illegal access rule exception. **错误信息** -Secure element IO exception. +IOError, there is a communication problem to the reader or the SE. **错误描述** -- GitLab