Ajax exception handling


I am performing negative tests using your ajax library. When I shut down the server and make an ajax request there is no error handling that occurs in your library. I must wrap my ajax calls in a try-catch blocks.

Having used dojo and jquery they provide error handling in their ajax libraries and return the results in their callback object. I assume they wrap their ajax calls in try-catch blocks.

Do you support error handling in your ajax library? If not, is this something you plan to introduce? Also if you don’t support error handling do you have any best practices or patterns that you use in the cases of ajax errors that you can share?