How can one catch web-application error on the client side?
<p>We would like to build automatic process that gets the client side source code of any web-app (HTML/JS/CSS).
The process task is to inject more code to the web-app, the mission of this code is to catch application errors and report those via ajax to some error-report service.</p>

<p>Is it even possible?</p>
