bn.onError
• onError: (cb
: AppErrorCallback
) => void
description
Listens on the Mini Program error event. This event is triggered as a result of script error or failed API call. The callback timing and parameters of this event are consistent with those of App.onError
.
example
Type declaration
▸ (cb
): void
Parameters
Name | Type |
---|---|
cb | AppErrorCallback |
Returns
void
#
AppErrorCallbackƬ AppErrorCallback: (error
: string
) => void
Type declaration
▸ (error
): void
Parameters
Name | Type |
---|---|
error | string |
Returns
void