Skip to Content

OnError

GitHub 上的源代码 

¥Source on GitHub 

OnError 类型定义了在发生错误时调用的回调函数。此回调接收错误 ID 和错误消息作为其参数。

¥The OnError type defines the callback function that is called when an error occurs. This callback receives an error id and the error message as its argument.

type OnError = (id: string, error: string) => void;
Parameters:
NameTypeDefault
idstring
messagestring
Returns:
void
Last updated on