Customizing ReportSenders per report

35 views
Skip to first unread message

Isneesh

unread,
May 8, 2013, 1:20:33 AM5/8/13
to acra-d...@googlegroups.com
Is it possible to specify which ReportSender to be used while reporting exceptions programmatically?

For example, I would like to mail the silent exceptions and send the rest to some server side application. I could do the following, but I would think this does not guarantee the caughtException would be sent via myReportSender since the report sending is an asynchronous process, right?

            ACRA.getErrorReporter().setReportSender(myReportSender);
            ACRA.getErrorReporter().handleSilentException(caughtException);
            ACRA.getErrorReporter().setDefaultReportSenders();


Kevin Gaudin

unread,
May 8, 2013, 4:35:15 AM5/8/13
to acra-d...@googlegroups.com

What about a meta custom sender which would instanciate both real senders and dispatch the reports depending on your logic?

Kevin

--
You received this message because you are subscribed to the Google Groups "acra-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acra-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Isneesh

unread,
May 8, 2013, 5:04:07 AM5/8/13
to acra-d...@googlegroups.com
Yes, so this would work if I have to distinguish by any of the ReportField properties directly. And hence this solves the problem of being able to distinguish between silent and non silent reports.

But it will still be a little difficult to distinguish by a custom data param.

Something like being able to 'tag' exceptions would help.
Reply all
Reply to author
Forward
0 new messages