Add an 'onerror' handler (or similar)

21 views
Skip to first unread message

Erik Munson

unread,
Jul 22, 2015, 12:06:11 AM7/22/15
to InboxSDK
A little background — we currently log errors in our extension using Sentry. We already capture a lot of errors for when things go wrong with our own Gmail hacks, and other random application-logic exceptions. The SDK typically provides very helpful errors (and sometimes catches application-level errors which would've otherwise been swallowed), but they are only ever logged into the console. It would be amazing if devs could register a handler with some sort of built-in 'onerror' mechanism which might be passed the exception (maybe even a real JS Error object?), and conceivably some extra metadata. Having a real Error object would be a big plus for us too, since then Sentry could do rollups/event aggregation.

Omar Ismail

unread,
Jul 22, 2015, 1:57:19 AM7/22/15
to Erik Munson, InboxSDK
This sounds like a great idea. Added to the list and we'll let you know when it's available (< 2 weeks).

On Tue, Jul 21, 2015 at 9:06 PM Erik Munson <emu...@hubspot.com> wrote:
A little background — we currently log errors in our extension using Sentry. We already capture a lot of errors for when things go wrong with our own Gmail hacks, and other random application-logic exceptions. The SDK typically provides very helpful errors (and sometimes catches application-level errors which would've otherwise been swallowed), but they are only ever logged into the console. It would be amazing if devs could register a handler with some sort of built-in 'onerror' mechanism which might be passed the exception (maybe even a real JS Error object?), and conceivably some extra metadata. Having a real Error object would be a big plus for us too, since then Sentry could do rollups/event aggregation.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/7bbc4a20-545b-43de-81f7-8a6a524aa0b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Erik Munson

unread,
Jul 22, 2015, 11:06:55 AM7/22/15
to InboxSDK
Thanks Omar! Much appreciated.

Walter

unread,
May 12, 2017, 7:13:42 PM5/12/17
to InboxSDK, emu...@hubspot.com
Hi Osmar,

Any news on this?
Thanks!
Reply all
Reply to author
Forward
0 new messages