> 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.

# onReceivedJavaError

APISummary
收到 Java 错误时调用。

## 语法

### Android

```java
public void onReceivedJavaError(LynxError error);
```

#### 参数

- `error`: 错误的类型和信息。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view-client.on-received-java-error`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-view-client/on-received-java-error.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| on-received-java-error | Yes (1.0) | No | No | No | No | No |

**`on-received-java-error`**

Called when java error received.

**Specifications:**

