Initial work Handle unhandled exceptions CR JUAN

This commit is contained in:
gerard 2018-05-10 13:48:48 +02:00
parent 4ebca3f3cb
commit aa7dbaeccb
1 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,17 @@ export function config($translatePartialLoaderProvider, $httpProvider, $qProvide
} }
ngModule.config(config); ngModule.config(config);
/*
// FIXME: Handle unhandled exceptions
exceptionHandler.$inject = ['vnApp'];
function exceptionHandler(vnApp) {
return function(exception, cause) {
console.error(exception);
};
}
ngModule.factory('$exceptionHandler', exceptionHandler);
*/
const HOOK_ABORTED_TRANSITION = 3; const HOOK_ABORTED_TRANSITION = 3;
run.$inject = ['$window', '$rootScope', 'vnApp', '$state']; run.$inject = ['$window', '$rootScope', 'vnApp', '$state'];