Skip to content

Instantly share code, notes, and snippets.

@neonstalwart
Created March 3, 2010 20:47
Show Gist options
  • Save neonstalwart/320992 to your computer and use it in GitHub Desktop.
Save neonstalwart/320992 to your computer and use it in GitHub Desktop.
var d = new dojo.Deferred();
d.addErrback(function(){
console.log('first error handler');
});
d.addErrback(function(){
console.log('2nd error handler');
});
d.addCallback(function(){
console.log('about to throw an error');
throw(new Error);
});
d.addErrback(function(){
console.log('3rd error handler');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment