The styled string error codes define the error messages that may occur during operations such as conversion, decoding, and serialization of styled strings, along with the corresponding handling suggestions, helping you quickly locate and resolve styled string related issues.
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Convert Error.
Description
This error code is reported when the fromHtml API fails to convert the input string into a styled string.
Possible Causes
The provided string is empty or does not comply with the HTML format.
Solution
Error Message
invalid styled string.
Description
This error code is reported when the styled string object in ArkUI_StyledString_Descriptor is empty in the styled string serialization C API.
Possible Causes
The styled string object passed in the parameter is empty.
Solution