aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/exceptionHandler.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/exceptionHandler.js')
-rw-r--r--src/service/exceptionHandler.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/service/exceptionHandler.js b/src/service/exceptionHandler.js
deleted file mode 100644
index 26ea5845..00000000
--- a/src/service/exceptionHandler.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-
-/**
- * @ngdoc function
- * @name angular.module.ng.$exceptionHandler
- * @requires $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 `angular-mocks.js` is loaded, this service is overridden by
- * {@link angular.module.ngMock.$exceptionHandler mock $exceptionHandler}
- *
- * @param {Error} exception Exception associated with the error.
- * @param {string=} cause optional information about the context in which
- * the error was thrown.
- */
-function $ExceptionHandlerProvider() {
- this.$get = ['$log', function($log){
- return function(exception, cause) {
- $log.error.apply($log, arguments);
- };
- }];
-}