# wx.onError(function callback)
Start from base library version 2.1.2. Please remaining backward compatible.
with Promise style call: Not supported
Need page permissions: Mini Programs cannot call this interface from a plugin page, and plugins cannot call the interface from the plugins page
Mini Program plugin: Not supported
Listens for Mini Program error events. Such as a script error or API Call error, etc. This event is related to App.onError
The callback timing of the.
# parameter
# function callback
Callback function for Mini Program error event
# parameter
# string error
Error message, including stack