how to handle ajax failure, when one ajax of multiple nested calls fails; using $.when method
<p>I am having multiple ajax requests, which i want to execute sequentially, so i am nesting them using $.when jQuery method.</p>

<pre><code>$.when(
  $.ajax({
    url : url,
    type: 'GET',
    dataType : 'json'
   }),
  $.ajax({
    url : url,
    type: 'GET',
    dataType : 'json'
  }),
 $.ajax({
   url : url,
   type: 'GET',
   dataType : 'json'
})

).then(doThis);
</code></pre>

<p>Now the question is, i have 2nd ajax failing, which breaks everything.</p>

<p>i want to know, how can we continue the sequence, even when any of the call fails.</p>
