| com.tencent.smtt.sdk.JsContext.ExceptionHandler |
由需要处理 JavaScript 异常的对象实现,如异常上报等。
context.setExceptionHandler(new JsContext.ExceptionHandler() {
@Override
public void handleException(JsContext context, JsError error) {
Log.e(TAG, "handleException message:" + error.getMessage());
}
});
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
handleException(JsContext context, JsError error)
在 JavaScript 运行过程中触发异常时调用。
| ||||||||||
在 JavaScript 运行过程中触发异常时调用。
| context | 触发异常的 JsContext。 |
|---|---|
| error | JavaScript 异常。 |