Is there a way to bypass the jQuery error handler?

Posted by oravecz on Stack Overflow See other posts from Stack Overflow or by oravecz
Published on 2010-05-28T01:55:34Z Indexed on 2010/05/28 2:01 UTC
Read the original article Hit count: 216

Filed under:
|

If my Ajax call returns a successful result, but while processing the result I cause an exception, the error handler fires. This seems counter intuitive to me as I think the error handler should only fire when an error occurs as a result of making the Ajax call or via a server-side error. I am trying to use the Ajax function in a unit test so I would like to tell the difference between the two different failure scenarios.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ajax