CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Error Handling
error: function(xhr, status) {                   
    var err = null;
    if (xhr.readyState == 4) {
        var res = xhr.responseText;
 
        if (res && res.substr(0,1) == '{')
            var err = JSON.parseWithDate(res);
        if (!err) {
            if (xhr.status && xhr.status != 200)
                err = new CallbackException(xhr.status + " " + xhr.statusText);
by Rick Strahl   September 11, 2009 @ 6:43pm
531 Views
no comments
 
C#
 
public class ErrorController : baseController
{
    /// <summary>
    /// Displays a generic error message
    /// </summary>
    /// <param name="title"></param>
    /// <param name="message"></param>
    /// <param name="redirectTo"></param>
    /// <returns></returns>
by Rick Strahl   July 08, 2009 @ 3:09pm
343 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate