Styled String Error Codes
NOTE
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
170001 Conversion Error
Error Message
Convert Error.
Description
This error code is reported when the fromHtml API failed to convert the input string into a corresponding styled string.
Possible Causes
The provided string is empty or does not comply with the HTML format.
Solution
N/A
170002 Styled String Decoding Error
Error Message
Styled string decode error.
Description
This error code is reported when the unmarshalling API failed to unmarshal the input byte stream into a valid styled string.
Possible Causes
The input byte stream does not conform to the serialization format of the styled string.
Solution
N/A
180101 Invalid Styled String
Error Message
invalid styled string.
Description
This error code is reported when the ArkUI_StyledString_Descriptor object in the styled string serialization C API is null.
Possible Causes
The styled string passed in the parameter is incorrect.
Solution
Check that the styled string is correctly passed in the parameter.
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller
openharmony 鸿蒙 errorcode-canvas
openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent
openharmony 鸿蒙 errorcode-bindSheet
openharmony 鸿蒙 js-apis-arkui-uiExtension-sys
openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo
openharmony 鸿蒙 capi-arkui-rendernodeutils
openharmony 鸿蒙 js-apis-arkui-node
openharmony 鸿蒙 capi-native-node-h
openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem