This is a migrated thread and some comments may be shown as answers.

ApplicationUsageHelper and ignoring certain exceptions

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jessi
Top achievements
Rank 1
Jessi asked on 04 Mar 2015, 05:57 PM
Can certain exceptions be ignored when using applicationusagehelper? There's one exception caused by a 3rd party lib that I can't do anything about, normally I would handle this exception in Application_UnhandledException() method and ignore it, but the telerik handler doesn't seem to have this capability.  Can you help?

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 09 Mar 2015, 01:24 PM
Hello Jessi,

Thank you for contacting us.

You can use the ExceptionOccurredEventArgs.Cancel property and set it to true to prevent the message box from displaying:
private void RadDiagnostics_ExceptionOccurred(object sender, ExceptionOccurredEventArgs e)
{
    if (e.Exception is SpecialException)
    {
        e.Handled = true;
        e.Cancel = true;
  
        return;
    }
  
    e.Cancel = false;
}

If you still want to get reports about this exception, you can find more information in this article from our online documentation: Anonymous crash reports.

I hope this helps. Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Jessi
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or