-
-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Milestone
Description
Is your feature request related to a problem? Please describe.
Currently we have 2 custom flags which can be used to avoid application crashes when JS exceptions are thrown discardUncaughtJsExceptions and suppressCallJSMethodExceptions. Unfortunately those type of exceptions cannot be collected through analytics, so it would be good if we can provide a way of handling such exceptions so that you could be able to get more details about where and how often they happen.
Describe the solution you'd like
Adding __onDiscardedError similar to __onUncaughtError handler which will receive those exceptions can be useful to process them, e.g.:
global.__onDiscardedError = function(error){
console.log(error.message);
console.log(error.stackTrace);
console.log(error.nativeException);
//report the exception in your analytics solution here
}Metadata
Metadata
Assignees
Labels
No labels