MCPcopy Create free account
hub / github.com/JacksonTian/fks / $ExceptionHandlerProvider

Function $ExceptionHandlerProvider

fks_chart/bower_components/angular/angular.js:7395–7401  ·  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

7393 *
7394 */
7395function $ExceptionHandlerProvider() {
7396 this.$get = ['$log', function($log) {
7397 return function(exception, cause) {
7398 $log.error.apply($log, arguments);
7399 };
7400 }];
7401}
7402
7403/**
7404 * Parse headers into key value object

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected