RaveJS / rave

Zero-configuration application bootstrap and development
278 stars 8 forks source link

Investigate ways to allow devs to handle fatal load errors #42

Open unscriptable opened 10 years ago

unscriptable commented 10 years ago

At the moment, there's no prescriptive way to catch fatal loading errors. Devs should be able to hook into an event or override a method to do something sane and/or helpful for their users, such as display a friendly error page.

pocesar commented 10 years ago

https://www.npmjs.org/package/trycatch? or it needs a browser equivalent version?

unscriptable commented 10 years ago

Hey @pocesar! Thanks for the link. That's a useful library. Async exceptions are nasty to wrangle. Ask @briancavalier who figured out how to wrangle them in when.js. :)

Actually, what I am asking is a bit different. What is the best mechanism to allow an application developer to listen for fatal events that happen in rave. Rave can already catch and handle almost everything (And will handle everything the next time we update the ES6 Loader shim). We just need to figure out the best API for application devs. Any ideas?