Branching off of questions like this one, I\'m looking to wrap jQuery\'s $.ajax() method such that I can provide error handling in one location, which would then be used aut
Actually, jQuery provides the hook, .ajaxError() just for this purpose. Any and all handlers you've bound with $ajaxError() will be called when an ajax request from page completes with an error. Specifying a selector allows you to reference this inside of your .ajaxError() handler.
To use it to handle all ajax request errors on the page and use this to point to document, you could do something like this:
$(document).ajaxError(function(event, request, settings){
alert("Error requesting page: " + settings.url);
});