title: Exception occurring not inside controllers/services, not reported
body: <p>I noticed that exceptions occurring not inside controllers/services but in plain javascript code is not being reported, doesn't appear in the console and can't be handled. For example, if I have Car class, which is being invoked from controller or service and there is exception inside the Car class, Angular will not report this error and swallow it.</p>
  
  <p>Function Car {</p>
  
  <pre><code>this.drive = function() {
      // exception occurs here
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Any idea on how to catch those exceptions? I'm using Angular 1.4.</p>