# wx.onError(function callback)

Listens on the global error event.

# Parameters

# function callback

The callback function for the global error event.

# Parameters

# Object res
Property Type Description
message string Error
stack string Error call stack