Error catching using javascript

is there any way to get thrown error on any event happened in meteor.

i.e. a abc.js file throws an error in browser console
Uncaught Error: Exception in abc: Invalid element id def

is there any way to get info about thrown error like this ?