MCPcopy Create free account
hub / github.com/binux/qiandao / $ExceptionHandlerProvider

Function $ExceptionHandlerProvider

web/static/components/angularjs/angular.js:7324–7330  ·  view source on GitHub ↗

* @ngdoc service * @name $exceptionHandler * @requires ng.$log * * @description * Any uncaught exception in angular expressions is delegated to this service. * The default implementation simply delegates to `$log.error` which logs it into * the browser console. * * In unit tests, if `angula

()

Source from the content-addressed store, hash-verified

7322 *
7323 */
7324function $ExceptionHandlerProvider() {
7325 this.$get = ['$log', function($log) {
7326 return function(exception, cause) {
7327 $log.error.apply($log, arguments);
7328 };
7329 }];
7330}
7331
7332/**
7333 * Parse headers into key value object

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected