get the complete error message

3 posts, 0 answers
  1. dev
    dev avatar
    20 posts
    Member since:
    Dec 2005

    Posted 05 Jul 2014 Link to this post

    it is possibile only get the error message without showing messagebox with Diagnostics?
  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 10 Jul 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. dev
    dev avatar
    20 posts
    Member since:
    Dec 2005

    Posted 16 Jul 2014 in reply to Rosy Topchiyska Link to this post

    perfect. thanks
Back to Top