Error Handling Strategies


We are nearing the 1.0 release of our ember app. and I am curious to hear from others with respect to what strategies they employ to bullet proof their app from the front end javascript errors that render the application unusable?


You can set the Ember.onerror property to a function. Any errors that happen within a RunLoop will be passed to this function. You can then take care of any logging you’d like to have and message the user appropriately.