For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/lynx-native-api/template-bundle/get-error-message.md.
Lynx
  • 简体中文
  • getErrorMessage

    TemplateBundle 是一个无效对象时,使用此方法获取模板解析期间发生的异常信息。

    语法

    Android

    public String getErrorMessage();

    返回值

    • 异常信息。

    iOS

    - (NSString *_Nullable)errorMsg;

    返回值

    • 异常信息,如果返回 nil,则证明 LynxTemplateBundle 正常。

    Harmony

    public getErrorMessage(): string;

    返回值

    • 模板解析期间的异常信息。

    Desktop (C++)

    std::string GetErrorMessage();

    返回值

    • 模板解析错误信息。返回空字符串表示 bundle 有效。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。