This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The NFC state is abnormal in the service.
Description
The NFC service fails to enable or disable NFC.
Possible Causes
Solution
Enable or disable NFC again or restart the device, and try again.
Error Message
The tag running state is abnormal in the service.
Description
An error occurs when the NFC service executes the tag service logic.
Possible Causes
Solution
Error Message
The element state is invalid.
Description
When the API is called, the application of the card read page is not running in the foreground.
Possible Causes
The card read page is not in the foreground.
Solution
The API can be called only by the page in the foreground.
Error Message
The off() API can be called only when the on() has been called.
Description
The off() API can be called only after on() is called.
Possible Causes
The foreground page of the application calls off() without invoking on().
Solution
Call on() first, and call off() before the page exits.
Error Message
The tag I/O operation failed.
Description
The NFC tag I/O operation fails.
Possible Causes
The NFC tag does not support the read/write operation.
Solution
Implement error handling and display error messages based on service scenarios.
Error Message
Card emulation running state is abnormal in service.
Description
An error occurs when the NFC service executes the card emulation service logic.
Possible Causes
Solution
Error Message
Connected NFC tag running state is abnormal in service.
Description
An error occurs when the service logic of the active NFC tag is executed.
Possible Causes
Solution