Add onWillThrowError
Specs for the error handler.
Emit an event object from atom.onDidThrowError
Upgrade metrics to use the new onDidThrowError arg
Merge pull request #4225 from atom/bo-error-events

Add onWillThrowError