The AngularJS $exceptionHandler is used to handle any uncaught exception in angular expressions. The default implementation of error is using $log.error in the browser console. It allows overriding the default exception handler behaviour by redefining in a factory.
Syntax