jquery/jquery — pull request #1267 by ukyo (2013-05-13 13:37:13+00:00)
Title: Deferred.then catch an Error was thrown by callback

Like the below.

```javascript
jQuery.Deferred().resolve().then(function() {
throw new Error('error message');
}).fail(function( err ) {
console.log( err.message );
});
```