DOM/window.onerror
From W3C Wiki
Description
window.onerror is a handler catching all error events and sending them to the window.
Use cases
The main use case for window.onerror is a simple way to collect programming errors occurring within the page. The context could listen all errors of a Web page and for example send them to a server.
