Description
I've been trying to add custom error handling to sometimes reload a page when a particular type of error occurs, but I'd also like to report that through raven to sentry.
My current way of accomplishing this is by exposing the private TraceKit used by Raven through a Raven.TK variable.
This is sort of sub optimal, though, since TraceKit does all sorts of weird stuff if you're on IE, etc, and I'm not always guaranteed that my tracekit handler will be called before Raven's TK handler.
It also requires me to know that Raven uses TK and how TK works.
In reality, all I need to know is that Raven has caught an error, and successfully reported it Sentry, and also ideally the error it reported.
Then I could let Raven handle errors, report them, and when it's done, look at the error and try reloading.
Thanks.