onError

abstract fun onError(listener: (throwable: Throwable) -> Unit)

添加脚本错误时的监听器.

Receiver

Parameters

listener

脚本错误时调用的函数