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

get the complete error message

2 Answers 6 Views
Diagnostics
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dev
Top achievements
Rank 1
dev asked on 05 Jul 2014, 05:03 PM
it is possibile only get the error message without showing messagebox with Diagnostics?

2 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 10 Jul 2014, 10:18 AM
Hi Ivan,

Thank you for the questions.

Here is an example of how to get started with RadDiagnostics. Please, take a look at the article. In the RadDiagnostics_ExceptionOccurred method from the sample, if you set the ExceptionOccurredEventArgs.Cancel property to true, then the default message box will not be displayed. Here is an example of how to get the exception message without showing the message box:
private void RadDiagnostics_ExceptionOccurred(object sender, ExceptionOccurredEventArgs e)
{
    e.Cancel = true;
    e.Handled = true;
    var message = e.Exception.Message;
}

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.

 
0
dev
Top achievements
Rank 1
answered on 16 Jul 2014, 07:34 AM
perfect. thanks
Tags
Diagnostics
Asked by
dev
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
dev
Top achievements
Rank 1
Share this question
or