deferred.catch( failFilter )Returns: Promise
Description: Add handlers to be called when the Deferred object is rejected.
version added: 3.0deferred.catch( failFilter )
failFilterType: Function()A function that is called when the Deferred is rejected.
deferred.catch( fn ) is an alias to
deferred.then( null, fn ). Read its page for more information.
jQuery.get method returns a jqXHR object, which is derived from a Deferred object, we can add rejection handlers using the