For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/lynx-native-api/lynx-view-client/on-received-error.md.
Lynx
  • English
  • onReceivedError

    Called when error received.

    Syntax

    Android

    public void onReceivedError(LynxError error);

    Parameters

    • error: The type and information of the error.

    Harmony

    public onReceivedError(error: LynxError): void;

    Parameters

    • error: The type and information of the error.

    Desktop (C++)

    class YourViewClient : public lynx::pub::LynxViewClient {
     public:
      void OnReceivedError(int error_code, const char* message) override;
    };

    Parameters

    • error_code: The error code.
    • message: The error message.

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.