The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Catching errors with $exceptionHandler

Catching errors with $exceptionHandler

5:25
The AngularJS $exceptionHandler service allows you to catch and handle unanticipated JavaScript errors in a meaningful way.
Watch this lesson now
Avatar
egghead.io

The AngularJS $exceptionHandler service allows you to catch and handle unanticipated JavaScript errors in a meaningful way.

Avatar
Will

Is there any particular reason to replace $exceptionHandler rather than decorate it, as shown here
http://odetocode.com/blogs/scott/archive/2014/04/21/better-error-handling-in-angularjs.aspx
and so (optionally) preserve conventional handling? Decoration feels more 'polite'.

In reply to egghead.io
Avatar
Ben

Nope. In fact you're probably right that decorating would be a better approach.

In reply to Will
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?