ember.jsrsvp.js

How to use Ember.RSVP.onerror to report exceptions from rejected promises without error handlers


I just watched this video of a recent panel discussion with the ember-core framework developers.

In the video the panel members are eached asked to share one general debugging tip -- Tom Dale calls out the RSVP onerror handler which makes it possible to globally report exceptions which would have otherwise been swallowed in promises without rejection handlers.

I think this handler will answer a (somewhat confused) question I asked elsewhere on Stack Overflow. Does anyone know how to use this handler or where the docs for it might be?

acceptable promise pattern for 'LOUD' errors?


Solution

  • The docs are here: https://github.com/tildeio/rsvp.js#error-handling

    This was added around September 2013.