+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Error handling

Error handling

3 posts, 0 answered
  1. Wilson Ochoa
    Wilson Ochoa avatar
    33 posts
    Registered:
    18 May 2010
    29 Nov 2010
    Link to this post
    Hi Team;

    Client got back to us asking if there is way to stop errors from shooting from the user/editor view on sitefinity.

    We will give you a error sample attached (error handling.png).

    The client wants to block these error from appearing from the user end and these should only be logged into the error log files.

    Can you please advice ASAP.

    thanks and regards,
    Wilson
    Gulf Interactive, Qatar
  2. Wilson Ochoa
    Wilson Ochoa avatar
    33 posts
    Registered:
    18 May 2010
    30 Nov 2010
    Link to this post
    Hi Team;

    Can we please get your soonest response here?

    thank you
    Wilson


  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    30 Nov 2010
    Link to this post
    Hello Wilson Ochoa,

    Thank you for using our services.

    The code block in the error message looks like a custom one. In the case of having custom code developers should provide their own logic for handling errors. Please consider wrapping up the code block with try-catch and handling exceptions in the catch statement.  You can consider the bellow code snippet:


    try
    {
        IList list = null;
        int i = list.Count;
    }
    catch (Exception ex)
    {
        Telerik.Utilities.Log.Exception(ex);
    }

    This will send the raised exception directly to the Sitefinity error logger which will write a error log entry in ~/App_Data/sitefinity.log without throwing the error.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
3 posts, 0 answered