IE and Firefox both support window.onerror(msg, url, line). But what about Safari and Opera?
When you use try...catch, each browser returns a slightly different Error object.
Has anyone else tried to cope with this issue?
Personally, I'd love to see Ext expose a technique for catching any and all exceptions throw within Ext's code base. I know that's a tall order (since Ext's code base is already so large), but I think it could be pretty simple.
Perhaps a new 'global' event: Ext.onerror(Object this, Ext.Error err)
harley.333: I just learned yesterday about window.onerror at The Ajax Experience. As you point out, the only downside is not supporting Safari and Opera. So, I agree that modifying Ext to provide a global error handler would be great.